|
Combine background repaint conditions in RenderStyle and RenderObject
Combined RenderStyle::needsFullRepaintOnContainer(Width|Height)Change
and local function mustRepaintFillLayers() in RenderObject.cpp into
RenderObject::mustRepaintFillLayersOn(Width|Height)Change.
Added missing logics of the original mustRepaintFillLayers():
- repaint if background-repeat is not repeat and no-repeat;
- repaint if background-position is not left or top origin;
- don't repaint if background-position is of fixed length;
TEST=fast/repaint/background-resize-width.html
TEST=fast/repaint/background-resize-height.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175172
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+738 lines, -71 lines) |
Patch |
 |
A |
LayoutTests/fast/repaint/background-resize-height.html
|
View
|
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/repaint/background-resize-height-expected.txt
|
View
|
|
1 chunk |
+227 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/repaint/background-resize-width.html
|
View
|
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/repaint/background-resize-width-expected.txt
|
View
|
|
1 chunk |
+232 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/repaint/resources/small-apple.jpg
|
View
|
1
|
Binary file |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderBox.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderObject.h
|
View
|
1
2
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderObject.cpp
|
View
|
1
2
|
3 chunks |
+84 lines, -18 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/RenderView.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/FillLayer.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/FillLayer.cpp
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
M |
Source/core/rendering/style/RenderStyle.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|