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

Unified Diff: Source/core/page/Page.cpp

Issue 645623004: Reland "Streamline frame detach" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move frame count inc/dec to WebFrame append/removeChild Created 6 years, 2 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: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 9dc655a814e403f5e0bb9d553a4929b778ff034c..58b55254fa045ae566a6440107170bad275641f8 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -128,7 +128,6 @@ Page::Page(PageClients& pageClients)
, m_editorClient(pageClients.editorClient)
, m_spellCheckerClient(pageClients.spellCheckerClient)
, m_storageClient(pageClients.storageClient)
- , m_subframeCount(0)
, m_openedByDOM(false)
, m_tabKeyCyclesThroughElements(true)
, m_defersLoading(false)
@@ -441,19 +440,6 @@ double Page::timerAlignmentInterval() const
return m_timerAlignmentInterval;
}
-#if ENABLE(ASSERT)
-void Page::checkSubframeCountConsistency() const
-{
- ASSERT(m_subframeCount >= 0);
-
- int subframeCount = 0;
- for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext())
- ++subframeCount;
-
- ASSERT(m_subframeCount + 1 == subframeCount);
-}
-#endif
-
void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitialState)
{
if (m_visibilityState == visibilityState)

Powered by Google App Engine
This is Rietveld 408576698