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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: move tests, remove dbg msg 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
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 61511cbb8f87521febca40cedfdf0fa6493108bd..cd466e6c00516f390a6e35adc50a1d65fe45108f 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -68,6 +68,7 @@
#include "core/dom/DOMImplementation.h"
#include "core/dom/DocumentFragment.h"
#include "core/dom/DocumentLifecycleObserver.h"
+#include "core/dom/DocumentStatisticsCollector.h"
#include "core/dom/DocumentType.h"
#include "core/dom/Element.h"
#include "core/dom/ElementDataCache.h"
@@ -1921,6 +1922,8 @@ void Document::layoutUpdated()
if (isRenderingReady() && body() && !styleEngine().hasPendingSheets()) {
if (!m_documentTiming.firstLayout())
m_documentTiming.markFirstLayout();
+
+ m_statisticsCollector.collectStatistics(*this);
}
}
@@ -4584,6 +4587,8 @@ void Document::finishedParsing()
InspectorInstrumentation::domContentLoadedEventFired(frame.get());
}
+ m_statisticsCollector.setReadyToCollect();
+
// Schedule dropping of the ElementDataCache. We keep it alive for a while after parsing finishes
// so that dynamically inserted content can also benefit from sharing optimizations.
// Note that we don't refresh the timer on cache access since that could lead to huge caches being kept

Powered by Google App Engine
This is Rietveld 408576698