|
Fix invalidation during painting of scrollbars
Previously LayerScrollbarArea::positionOverflowControls() is called
from ScrollableAreaPainter::paintOverflowControls() just to apply
the paintOffset. This is incorrect because painting should not affect
layout and paintOffset should be applied to painting only.
- Remove the offsetFromRoot parameter of positionOverflowControls();
- Apply paintOffset to GraphicsContext only;
- Fix initial positionOverflowControls() when overflow:scroll but no
overflow;
- Fix under-invalidation when scrollbar position/size changes.
BUG= 457415, 456028
TEST=existing tests
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191027
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+73 lines, -45 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/layout-state-only-positioned-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/linux/compositing/squashing/iframe-inside-squashed-layer-expected.txt
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/svg/as-object/embedded-svg-size-changes-no-layout-triggers-expected.txt
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-1-expected.txt
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-2-expected.txt
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayerScrollableArea.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayerScrollableArea.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -16 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutBox.h
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutBox.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutFlexibleBox.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/compositing/CompositedLayerMapping.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/layout/compositing/CompositedLayerMapping.cpp
|
View
|
1
2
3
4
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/paint/ScrollableAreaPainter.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/Scrollbar.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/Scrollbar.cpp
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 25 (5 generated)
|