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

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

Issue 618253002: Revert of Streamline frame detach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « Source/core/page/Page.h ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 1ee917e6c518abe095f9c0fa5afc52a57e1e1cc4..ea017a3640d25f70b17faa25f4081577e7a59620 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -128,6 +128,7 @@
, m_editorClient(pageClients.editorClient)
, m_spellCheckerClient(pageClients.spellCheckerClient)
, m_storageClient(pageClients.storageClient)
+ , m_subframeCount(0)
, m_openedByDOM(false)
, m_tabKeyCyclesThroughElements(true)
, m_defersLoading(false)
@@ -439,6 +440,19 @@
{
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)
{
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698