|
Rename isTreatedAsOrStackingContext to isStacked and move out of ComputedStyle
Previous isTreatedAsStackingContext is confusing because besides
positioned elements we also treats some other elements as "pseudo
stacking contexts" (see ObjectPainter::paintPseudoStackingContext()
==> renamed to ObjectPainter::paintAllPhasesAtomically()).
The actual difference between elements "isTreatedAsStackingContext" and
other pseudo stacking contexts is that the former are treated as
"z-index:0" so are stacked in the containing stacking context.
Then isTreatedAsOrStackingContext() is to check if the element should
be stacked, so rename it to isStacked().
Added a chapter in Source/core/paint/README.md to explain how we understand
and use the concepts.
Also avoid "pseudo stacking context". Rename
ObjectPainter::paintPseudoStackingContext() to
ObjectPainter::paintAllPhasesAtomically().
Committed: https://crrev.com/c717c257efe380a6498363f60a350d5835c545bb
Cr-Commit-Position: refs/heads/master@{#381657}
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+139 lines, -92 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/BlockFlowPainter.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/BlockPainter.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/BlockPainter.cpp
|
View
|
1
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/GridPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/ObjectPainter.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/ObjectPainter.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayer.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+30 lines, -23 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+12 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayerStackingNodeIterator.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintPhase.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/README.md
|
View
|
1
2
3
4
5
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/SVGForeignObjectPainter.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/style/ComputedStyle.h
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -21 lines |
0 comments
|
Download
|
Total messages: 41 (9 generated)
|