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

Unified Diff: Source/core/dom/Node.cpp

Issue 465223002: [ Do not submit ] Prototype for invalidation analysis Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Unify the three invalidation trace event categories 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
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index f605f7a4a676c2945331d6fa1ea6ca82d5f3e9bb..64af4a434e5723f992df1caa1fbe317423f06110 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -82,6 +82,7 @@
#include "core/html/HTMLDialogElement.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLStyleElement.h"
+#include "core/inspector/InspectorTraceEvents.h"
#include "core/page/ContextMenuController.h"
#include "core/page/EventHandler.h"
#include "core/page/Page.h"
@@ -776,6 +777,11 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType)
setStyleChange(changeType);
if (changeType >= SubtreeStyleChange)
traceStyleChangeIfNeeded(changeType);
+ TRACE_EVENT_INSTANT1(
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"),
+ "StyleInvalidationTracking",
+ "data",
+ InspectorStyleInvalidationTrackingEvent::data(this));
}
if (existingChangeType == NoStyleChange)
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.h » ('j') | Source/core/inspector/InspectorTraceEvents.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698