| 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*);
|
|
|