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

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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: muted violations in tests. 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 4796dd84e677f50f7b2fd8c55fad27bab98452fd..660884efc205bdbad49c6adf5945e7fc4ca1a168 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