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

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

Issue 1316663004: [Oilpan] De-oilpanize ScopedPageLoadDeferrer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/ScopedPageLoadDeferrer.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/ScopedPageLoadDeferrer.cpp
diff --git a/Source/core/page/ScopedPageLoadDeferrer.cpp b/Source/core/page/ScopedPageLoadDeferrer.cpp
index 45956088c8c42275b6defe27075e68893c2507e5..ba7e5dd27d953b4d30032413c69ad6180bfac425 100644
--- a/Source/core/page/ScopedPageLoadDeferrer.cpp
+++ b/Source/core/page/ScopedPageLoadDeferrer.cpp
@@ -31,7 +31,7 @@
namespace blink {
-ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) : m_detached(false)
+ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion)
{
const HashSet<Page*>& pages = Page::ordinaryPages();
for (const Page* page : pages) {
@@ -57,36 +57,17 @@ ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) : m_detached(fal
void ScopedPageLoadDeferrer::detach()
{
- if (m_detached)
- return;
-
for (size_t i = 0; i < m_deferredFrames.size(); ++i) {
if (Page* page = m_deferredFrames[i]->page())
page->setDefersLoading(false);
}
Platform::current()->currentThread()->scheduler()->resumeTimerQueue();
- m_detached = true;
-}
-
-#if ENABLE(OILPAN)
-void ScopedPageLoadDeferrer::dispose()
-{
- detach();
- m_deferredFrames.clear();
}
-#endif
ScopedPageLoadDeferrer::~ScopedPageLoadDeferrer()
{
detach();
}
-DEFINE_TRACE(ScopedPageLoadDeferrer)
-{
-#if ENABLE(OILPAN)
- visitor->trace(m_deferredFrames);
-#endif
-}
-
} // namespace blink
« no previous file with comments | « Source/core/page/ScopedPageLoadDeferrer.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698