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

Unified Diff: Source/core/inspector/InspectorTraceEvents.h

Issue 580373002: [Invalidation Tracking] Trace StyleInvalidator setNeedsStyleRecalc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: attributes Created 6 years, 2 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
« no previous file with comments | « Source/core/css/invalidation/StyleInvalidator.cpp ('k') | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTraceEvents.h
diff --git a/Source/core/inspector/InspectorTraceEvents.h b/Source/core/inspector/InspectorTraceEvents.h
index 944069973d0bfe8b8f5ae1bee3af8d639fac9805..42c57a519232de7e930f260010ca9f2649d85e70 100644
--- a/Source/core/inspector/InspectorTraceEvents.h
+++ b/Source/core/inspector/InspectorTraceEvents.h
@@ -7,11 +7,15 @@
#include "platform/EventTracer.h"
#include "platform/TraceEvent.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
+#include "wtf/Functional.h"
namespace blink {
+class DescendantInvalidationSet;
class Document;
+class Element;
class Event;
class ExecutionContext;
class FrameView;
@@ -29,6 +33,7 @@ class ResourceResponse;
class ScriptCallStack;
class ScriptSourceCode;
class StyleChangeReasonForTracing;
+class TracedValue;
class WorkerThread;
class XMLHttpRequest;
@@ -43,6 +48,38 @@ public:
static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Node*, const StyleChangeReasonForTracing&);
};
+class InspectorStyleInvalidatorInvalidateEvent {
+public:
+ static const char ElementHasPendingInvalidationList[];
+ static const char InvalidateCustomPseudo[];
+ static const char InvalidationSetMatchedAttribute[];
+ static const char InvalidationSetMatchedClass[];
+ static const char InvalidationSetMatchedId[];
+ static const char InvalidationSetMatchedTagName[];
+ static const char PreventStyleSharingForParent[];
+
+ static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const char* reason);
+ static PassRefPtr<TraceEvent::ConvertableToTraceFormat> selectorPart(Element&, const char* reason, const String&);
+ static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Element&, const WillBeHeapVector<RefPtrWillBeMember<DescendantInvalidationSet> >&);
+
+private:
+ static PassRefPtr<TracedValue> fillCommonPart(Element&, const char* reason);
+};
+
+#define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \
+ TRACE_EVENT_INSTANT1( \
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
+ "StyleInvalidatorInvalidationTracking", \
+ "data", \
+ InspectorStyleInvalidatorInvalidateEvent::data((element), (InspectorStyleInvalidatorInvalidateEvent::reason)))
+
+#define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(element, reason, singleSelectorPart) \
+ TRACE_EVENT_INSTANT1( \
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
+ "StyleInvalidatorInvalidationTracking", \
+ "data", \
+ InspectorStyleInvalidatorInvalidateEvent::selectorPart((element), (InspectorStyleInvalidatorInvalidateEvent::reason), (singleSelectorPart)))
+
class InspectorLayoutInvalidationTrackingEvent {
public:
static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObject*);
« no previous file with comments | « Source/core/css/invalidation/StyleInvalidator.cpp ('k') | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698