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

Unified Diff: Source/core/frame/FrameHost.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/frame/FrameHost.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameHost.cpp
diff --git a/Source/core/frame/FrameHost.cpp b/Source/core/frame/FrameHost.cpp
index 353f6407206461795b7af19ab8a47eba020926ef..8e5541d66473281e0c132871f36886729ad4a9b4 100644
--- a/Source/core/frame/FrameHost.cpp
+++ b/Source/core/frame/FrameHost.cpp
@@ -47,7 +47,6 @@
: m_page(&page)
, m_pinchViewport(adoptPtr(new PinchViewport(*this)))
, m_eventHandlerRegistry(adoptPtrWillBeNoop(new EventHandlerRegistry(*this)))
- , m_frameCount(0)
{
}
@@ -92,25 +91,4 @@
visitor->trace(m_eventHandlerRegistry);
}
-#if ENABLE(ASSERT)
-void checkFrameCountConsistency(int expectedFrameCount, Frame* frame)
-{
- ASSERT(expectedFrameCount >= 0);
-
- int actualFrameCount = 0;
- for (; frame; frame = frame->tree().traverseNext())
- ++actualFrameCount;
-
- ASSERT(expectedFrameCount == actualFrameCount);
}
-#endif
-
-int FrameHost::frameCount() const
-{
-#if ENABLE(ASSERT)
- checkFrameCountConsistency(m_frameCount, m_page->mainFrame());
-#endif
- return m_frameCount;
-}
-
-}
« no previous file with comments | « Source/core/frame/FrameHost.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698