|
|
Implement filter effects region for reference filters.
The guts of this change are to set the filter region from
the target HTML element's bounding box for reference
filters (SVG filters applied to HTML content). This change
also bakes the filter region into the Skia crop rects of
all leaf nodes of the DAG (all 0-input filters, and all
filters whose inputs are all unconnected (NULL)). In the
future, this will allow us to remove the bounds from the
filtering saveLayer() calls, and leave the rendering
unchanged.
Since we no longer compute the filter region automatically (not spec compliant), the tests were modified
where possible to produce the same results. Where not,
the changes are minor pixel diffs.
Changed ReferenceFilterBuilder to actually
build a ReferenceFilter, instead of taking one as a
parameter, so it can retrieve the target bounding box
from the Element* and set it on the new ReferenceFilter.
Removed a now-unnecessary workaround from SVGFEImage.
Removed m_targetBoundingBox from SVGFilter (this should've
been in my last patch).
BUG= 240827, 240845
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199232
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+737 lines, -71 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-colorspace.html
|
View
|
1
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-colorspace-hw.html
|
View
|
1
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-composite.html
|
View
|
|
1 chunk |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-composite-hw.html
|
View
|
|
1 chunk |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-hidpi.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-image.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-image-hw.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-image-lazy-attach.html
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/effect-reference-ordering.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/filters/feoffset-region-zoom.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/css3/filters/filterRegions.html
|
View
|
1
2
3
4
|
1 chunk |
+337 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/css3/filters/filterRegions-expected.html
|
View
|
1
2
3
4
5
|
1 chunk |
+304 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/svg/ReferenceFilterBuilder.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/svg/ReferenceFilterBuilder.cpp
|
View
|
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/paint/DeprecatedPaintLayer.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/paint/FilterEffectBuilder.cpp
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/graphics/filters/SVGFEImage.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/graphics/filters/SVGFilter.h
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/graphics/filters/SVGFilter.cpp
|
View
|
1
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/filters/FilterEffect.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/platform/graphics/filters/FilterEffect.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (6 generated)
|