|
|
Don't coerce pointers to compositor layer mappings to booleans.
Using compositedLayerMapping() in a boolean expression is an error -- there are
in fact three compositing states, and there may be more in the future. This
subtlety cannot be captured with a boolean. This CL updates the current code so
that our intentions are explicit, and it prevents future abuses through a thin
wrapper around a CompositedLayerMapping* that cannot be coerced to a boolean
value.
This patch includes much of shawn's change to use a hasCompositedLayerMapping() accessor: https://codereview.chromium.org/58543002/
R=shawnsingh@chromium.org
BUG=
Total comments: 31
Total comments: 1
Total comments: 2
Total comments: 29
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+245 lines, -132 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
|
1 chunk |
+8 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/frame/FrameView.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorLayerTreeAgent.cpp
|
View
|
1
2
|
2 chunks |
+10 lines, -4 lines |
5 comments
|
Download
|
 |
M |
Source/core/page/scrolling/ScrollingCoordinator.cpp
|
View
|
1
2
|
6 chunks |
+44 lines, -10 lines |
2 comments
|
Download
|
 |
M |
Source/core/rendering/CompositedLayerMapping.cpp
|
View
|
1
2
3
4
|
5 chunks |
+19 lines, -35 lines |
0 comments
|
Download
|
 |
A |
Source/core/rendering/CompositedLayerMappingPtr.h
|
View
|
1
2
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayer.h
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
2 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayer.cpp
|
View
|
1
2
3
4
|
16 chunks |
+39 lines, -19 lines |
10 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerCompositor.cpp
|
View
|
1
2
3
4
|
23 chunks |
+39 lines, -37 lines |
2 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerModelObject.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerModelObject.cpp
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerRepainter.cpp
|
View
|
1
2
|
5 chunks |
+10 lines, -6 lines |
4 comments
|
Download
|
 |
M |
Source/core/rendering/RenderLayerScrollableArea.cpp
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderTreeAsText.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/svg/SVGRenderingContext.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/testing/Internals.cpp
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -2 lines |
2 comments
|
Download
|
 |
M |
Source/web/LinkHighlight.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
2 comments
|
Download
|
 |
M |
Source/web/tests/ScrollingCoordinatorChromiumTest.cpp
|
View
|
1
2
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|