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

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: Fix multiple paint bug, fix bug where nodes did not linkify properly, minor cleanups Created 6 years, 4 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 86b776ca6635bcd78088e9361e474924b4363aff..d8750b9abc036c139652599cb7356d4b1ba258e8 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -79,6 +79,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"
@@ -775,6 +776,11 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType)
setStyleChange(changeType);
if (changeType >= SubtreeStyleChange)
traceStyleChangeIfNeeded(changeType);
+ TRACE_EVENT_INSTANT1(
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.styleInvalidationTracking"),
caseq 2014/08/26 12:19:07 nit: I wonder if category needs to be that specifi
+ "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.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698