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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 2737243003: Remove FrameHost::subFrameCount() (Closed)
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index d10fef69be8ea8ce939d3b5791e94c3b8f5696cc..2d42aa2d10cc6159a74dbd75d90236a4f47ace4e 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -202,7 +202,7 @@ void WebFrame::insertAfter(WebFrame* newChild, WebFrame* previousSibling) {
}
toImplBase()->frame()->tree().invalidateScopedChildCount();
- toImplBase()->frame()->host()->incrementSubframeCount();
+ toImplBase()->frame()->page()->incrementSubframeCount();
}
void WebFrame::appendChild(WebFrame* child) {
@@ -227,7 +227,7 @@ void WebFrame::removeChild(WebFrame* child) {
child->m_previousSibling = child->m_nextSibling = 0;
toImplBase()->frame()->tree().invalidateScopedChildCount();
- toImplBase()->frame()->host()->decrementSubframeCount();
+ toImplBase()->frame()->page()->decrementSubframeCount();
}
void WebFrame::setParent(WebFrame* parent) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698