|
Track reasons for |Node::SetNeedsStyleRecalc|
Based on Eric Williger's patch: https://crrev.com/89783003
This CL tracks reason for invalidating style on each |Node::SetNeedsStyleRecalc|
call. This enables devtools/about:tracing to show the Blink internal reason why a
style invalidation was triggered.
This patch introduces a new |reason| argument to |Node::SetNeedsStyleRecalc|
method. The argument type |StyleChangeReasonForTracing| is actually a typedef
to |const char[]|. The string itself is instantiated on separate cpp file for minimal
binary size. This pattern is borrowed from
src/extensions/common/manifest_constants.h (Thanks jyasskin@!), and similar
pattern can be found in Blink Source/core/inspector/InspectorInstrumentation.h,
BUG= 316388, 410701
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182824
Total comments: 18
Total comments: 27
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+275 lines, -90 lines) |
Patch |
 |
M |
Source/core/Init.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/invalidation/StyleInvalidator.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ContainerNode.cpp
|
View
|
1
2
3
4
|
8 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.cpp
|
View
|
1
2
3
4
|
7 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/DocumentStyleSheetCollection.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/Element.cpp
|
View
|
1
2
3
4
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Fullscreen.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Node.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/Node.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
Source/core/dom/StyleChangeReason.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/core/dom/StyleChangeReason.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/StyleEngine.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/TreeScope.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/VisitedLinkState.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/shadow/ElementShadow.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/shadow/InsertionPoint.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/frame/LocalFrame.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLBodyElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLElement.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLFormControlElement.cpp
|
View
|
1
2
3
4
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLFrameSetElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLInputElement.cpp
|
View
|
1
2
3
4
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLObjectElement.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLPlugInElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLSelectElement.cpp
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLTableElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLTextAreaElement.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/forms/FileInputType.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/forms/InputType.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/forms/TextFieldInputType.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/shadow/DateTimeEditElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/shadow/DateTimeFieldElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorCSSAgent.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/Page.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderObject.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderTextControl.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGAElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGAnimateElement.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGCursorElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGForeignObjectElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGSVGElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 35 (5 generated)
|