|
Make compositingState explicit (re-land #2 with bogus ASSERT removed)
A lot of code uses isComposited() and compositedLayerMapping()
as booleans to check the compositing state of a RenderLayer or
RenderObject. However, in the code there are actually 3 different
states:
(1) not composited (paints into CompositedLayerMapping of a
composited ancestor)
(2) paints into own CompositedLayerMapping
(3) has its own CompositedLayerMapping but actually still paints
into composited ancestor.
Furthermore, upcoming changes to compositing will add a
fourth state:
(4) paints into a GraphicsLayer that is shared by a group of
layers.
This patch removes isComposited() boolean check, and
replaces it with compositingState() that returns an enum.
Most call sites outside of RenderLayer, CompositedLayerMapping,
and RenderLayerCompositor have been updated to reflect
what states they really intended to check for. Remaining call
sites have been replaced with the compositedLayerMapping()
accessor for now, which is exactly equivalent to the old
isComposited() boolean, and those sites will be updated in
follow-up patches.
BUG= 261605
R=jamesr@chromium.org, jchaffraix@chromium.org, vollick@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159118
Total comments: 14
Total comments: 18
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+192 lines, -118 lines) |
Patch |
 |
M |
Source/core/css/CSSComputedStyleDeclaration.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorLayerTreeAgent.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/FrameView.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/animation/AnimationBase.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/animation/ImplicitAnimation.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/animation/KeyframeAnimation.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/scrolling/ScrollingCoordinator.cpp
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/CompositedLayerMapping.cpp
|
View
|
1
2
3
4
|
6 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
A |
Source/core/rendering/CompositingState.h
|
View
|
1
2
3
4
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBox.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBoxModelObject.cpp
|
View
|
1
2
3
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayer.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayer.cpp
|
View
|
1
2
3
4
5
6
|
26 chunks |
+51 lines, -30 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerCompositor.cpp
|
View
|
1
2
3
4
5
6
7
8
|
20 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerRepainter.cpp
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerScrollableArea.cpp
|
View
|
1
2
3
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderObject.h
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderObject.cpp
|
View
|
1
2
3
4
5
|
5 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderTreeAsText.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderView.cpp
|
View
|
1
2
3
6
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderWidget.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/svg/SVGRenderingContext.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/LinkHighlight.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/ScrollingCoordinatorChromiumTest.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|