| Index: Source/core/inspector/InspectorTraceEvents.h
|
| diff --git a/Source/core/inspector/InspectorTraceEvents.h b/Source/core/inspector/InspectorTraceEvents.h
|
| index 24ffa7165b1b645695ea0218bd59f291906ed4e1..fc40a113757d95382efe1e70c0f6cb55abc2c3dc 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;
|
| @@ -25,8 +29,9 @@ class RenderLayer;
|
| class RenderObject;
|
| class ResourceRequest;
|
| class ResourceResponse;
|
| -class ScriptSourceCode;
|
| class ScriptCallStack;
|
| +class ScriptSourceCode;
|
| +class TracedValue;
|
| class WorkerThread;
|
| class XMLHttpRequest;
|
|
|
| @@ -36,6 +41,38 @@ public:
|
| static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(RenderObject* rootForThisLayout);
|
| };
|
|
|
| +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*);
|
|
|