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

Side by Side 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: rebased 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorTraceEvents_h 5 #ifndef InspectorTraceEvents_h
6 #define InspectorTraceEvents_h 6 #define InspectorTraceEvents_h
7 7
8 #include "platform/EventTracer.h" 8 #include "platform/EventTracer.h"
9 #include "platform/TraceEvent.h" 9 #include "platform/TraceEvent.h"
10 #include "platform/heap/Handle.h"
10 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
15 class DescendantInvalidationSet;
14 class Document; 16 class Document;
17 class Element;
15 class Event; 18 class Event;
16 class ExecutionContext; 19 class ExecutionContext;
17 class FrameView; 20 class FrameView;
18 class GraphicsContext; 21 class GraphicsContext;
19 class GraphicsLayer; 22 class GraphicsLayer;
20 class KURL; 23 class KURL;
21 class LayoutRect; 24 class LayoutRect;
22 class LocalFrame; 25 class LocalFrame;
23 class RenderImage; 26 class RenderImage;
24 class RenderLayer; 27 class RenderLayer;
25 class RenderObject; 28 class RenderObject;
26 class ResourceRequest; 29 class ResourceRequest;
27 class ResourceResponse; 30 class ResourceResponse;
28 class ScriptSourceCode; 31 class ScriptSourceCode;
29 class ScriptCallStack; 32 class ScriptCallStack;
30 class WorkerThread; 33 class WorkerThread;
31 class XMLHttpRequest; 34 class XMLHttpRequest;
32 35
33 class InspectorLayoutEvent { 36 class InspectorLayoutEvent {
34 public: 37 public:
35 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* ); 38 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* );
36 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(RenderObject * rootForThisLayout); 39 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(RenderObject * rootForThisLayout);
37 }; 40 };
38 41
42 class InspectorStyleInvalidatorInvalidateEvent {
caseq 2014/09/30 12:24:00 nit: here and below, I wonder if we need both Inva
kouhei (in TOK) 2014/10/01 04:16:14 . I think StyleInvalidatorInvalidate is correct he
43 public:
44 static const char ElementHasPendingInvalidationMap[];
45 static const char InvalidateCustomPseudo[];
46 static const char InvalidationSetMatchedAttribute[];
47 static const char InvalidationSetMatchedClass[];
48 static const char InvalidationSetMatchedId[];
49 static const char InvalidationSetMatchedTagName[];
50 static const char PreventStyleSharingForParent[];
51
52 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const char* reason, const String& = nullAtom);
53 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele ment&, const WillBeHeapVector<RefPtrWillBeMember<DescendantInvalidationSet> >&);
54 };
55 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(ELEMENT, REASON) \
caseq 2014/09/30 12:24:00 nit: plase add a blank line above the macro defini
kouhei (in TOK) 2014/10/01 04:16:14 Done.
56 TRACE_EVENT_INSTANT1( \
57 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
58 "StyleInvalidatorInvalidationTracking", \
59 "data", \
60 InspectorStyleInvalidatorInvalidateEvent::data((ELEMENT), (InspectorStyl eInvalidatorInvalidateEvent::REASON)))
61 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(ELEMENT, REASON, SELEC TORPART) \
caseq 2014/09/30 12:24:00 ditto
kouhei (in TOK) 2014/10/01 04:16:15 Done.
62 TRACE_EVENT_INSTANT1( \
63 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
64 "StyleInvalidatorInvalidationTracking", \
65 "data", \
66 InspectorStyleInvalidatorInvalidateEvent::data((ELEMENT), (InspectorStyl eInvalidatorInvalidateEvent::REASON), (SELECTORPART)))
67
39 class InspectorLayoutInvalidationTrackingEvent { 68 class InspectorLayoutInvalidationTrackingEvent {
40 public: 69 public:
41 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect*); 70 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect*);
42 }; 71 };
43 72
44 class InspectorPaintInvalidationTrackingEvent { 73 class InspectorPaintInvalidationTrackingEvent {
45 public: 74 public:
46 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect* renderer, const RenderObject* paintContainer); 75 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect* renderer, const RenderObject* paintContainer);
47 }; 76 };
48 77
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 210
182 class InspectorTracingSessionIdForWorkerEvent { 211 class InspectorTracingSessionIdForWorkerEvent {
183 public: 212 public:
184 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*); 213 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*);
185 }; 214 };
186 215
187 } // namespace blink 216 } // namespace blink
188 217
189 218
190 #endif // !defined(InspectorTraceEvents_h) 219 #endif // !defined(InspectorTraceEvents_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698