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

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

Issue 2769263004: Remove Frame::host() method (Closed)
Patch Set: Created 3 years, 9 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 b65fc3d37f617f964c41cf1f1840167eb4fcccce..33fcfd9883d8910924eb50b65071e4ad2a936c58 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -69,7 +69,7 @@ Location* DOMWindow::location() const {
}
bool DOMWindow::closed() const {
- return m_windowIsClosing || !frame() || !frame()->host();
+ return m_windowIsClosing || !frame() || !frame()->page();
}
unsigned DOMWindow::length() const {
@@ -118,7 +118,7 @@ DOMWindow* DOMWindow::anonymousIndexedGetter(uint32_t index) const {
bool DOMWindow::isCurrentlyDisplayedInFrame() const {
if (frame())
SECURITY_CHECK(frame()->domWindow() == this);
- return frame() && frame()->host();
+ return frame() && frame()->page();
}
bool DOMWindow::isInsecureScriptAccess(LocalDOMWindow& callingWindow,

Powered by Google App Engine
This is Rietveld 408576698