|
Fix paint invalidation for SVG with outline-offset
The paint invalidation code did not factor in the outline-offset,
leading to too small repaint rectangles.
Use ComputedStyle::outlineSize() when inflating the paint invalidation
rect instead. If the outline-style is 'auto', then use the
GC::focusRingOutsetExtent function - this leads to smaller paint inv.
rects where this applies (like in tests svg/repaint/focus-element.html
and svg/custom/focus-ring.svg).
BUG= 495666
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196484
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+78 lines, -21 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/svg/repaint/outline-offset-shape.html
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/svg/repaint/outline-offset-shape-expected.txt
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
A |
LayoutTests/svg/repaint/outline-offset-text.html
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/svg/repaint/outline-offset-text-expected.txt
|
View
|
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/layout/svg/LayoutSVGBlock.cpp
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/layout/svg/LayoutSVGInline.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/layout/svg/LayoutSVGModelObject.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/layout/svg/SVGLayoutSupport.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/layout/svg/SVGLayoutSupport.cpp
|
View
|
|
2 chunks |
+21 lines, -12 lines |
0 comments
|
Download
|
Total messages: 7 (2 generated)
|