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

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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: Created 4 years, 1 month 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 7755997f837a5574ff44bf827390c9cfa208929d..ee1efa1ebc6538d8e5065e0720851b72761a9ebd 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -147,6 +147,7 @@
#include "core/frame/HostsUsingFeatures.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/PerformanceMonitor.h"
#include "core/frame/Settings.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/html/DocumentNameCollection.h"
@@ -1871,6 +1872,7 @@ void Document::updateStyleAndLayoutTree() {
unsigned startElementCount = styleEngine().styleForElementCount();
InspectorInstrumentation::willRecalculateStyle(this);
+ PerformanceMonitor::willRecalculateStyle(this);
DocumentAnimations::updateAnimationTimingIfNeeded(*this);
evaluateMediaQueryListIfNeeded();
@@ -1915,6 +1917,7 @@ void Document::updateStyleAndLayoutTree() {
assertLayoutTreeUpdated(*this);
#endif
InspectorInstrumentation::didRecalculateStyle(this);
+ PerformanceMonitor::didRecalculateStyle(this);
}
void Document::updateStyle() {

Powered by Google App Engine
This is Rietveld 408576698