Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2059)

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.cpp

Issue 2849403002: Use const ref for LocalFrame::LocalFrameRoot and FrameTree::Top (Closed)
Patch Set: fix compile and dchecks Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/DOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
index 308c99c1fa0091a12aca8bafaba1465489de8a8d..84ccd6579348700645e4fb40ad77627de5c06d40 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -106,7 +106,7 @@ DOMWindow* DOMWindow::top() const {
if (!GetFrame())
return nullptr;
- return GetFrame()->Tree().Top()->DomWindow();
+ return GetFrame()->Tree().Top().DomWindow();
}
DOMWindow* DOMWindow::AnonymousIndexedGetter(uint32_t index) const {
@@ -228,7 +228,7 @@ void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message,
source_document->Url())) {
UseCounter::Count(GetFrame(), UseCounter::kPostMessageFromInsecureToSecure);
if (MixedContentChecker::IsMixedContent(
- GetFrame()->Tree().Top()->GetSecurityContext()->GetSecurityOrigin(),
+ GetFrame()->Tree().Top().GetSecurityContext()->GetSecurityOrigin(),
source_document->Url())) {
UseCounter::Count(GetFrame(),
UseCounter::kPostMessageFromInsecureToSecureToplevel);
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698