|
Map light-source oBB-relative coordinates to the user-space of the filter
The 'fePointLight' and 'feSpotLight' light-source elements for
'fe{Diffuse,Specular}Lighting' defines positions, and in the case of
the latter a 'look-at' point (implicit direction). When an SVG filter is
declared to use primitiveUnits=objectBoundingBox, these positions/points
needs to be mapped to the user-space of the filter.
This is achieved by adding a new method resolve3dPoint() to Filter, and
perform the coordinate space mapping when creating the various
LightSources.
Open-code SVGFELightElement::findLightSource() in it's sources to avoid
passing the Filter-instance around more than necessary.
BUG= 176419
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176499
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+70 lines, -22 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox.html
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox-expected.html
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox.html
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox-expected.html
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEDiffuseLightingElement.cpp
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEDistantLightElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEDistantLightElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFELightElement.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFELightElement.cpp
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEPointLightElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEPointLightElement.cpp
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFESpecularLightingElement.cpp
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFESpotLightElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFESpotLightElement.cpp
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/graphics/filters/SVGFilter.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/graphics/filters/SVGFilter.cpp
|
View
|
|
1 chunk |
+9 lines, -0 lines |
1 comment
|
Download
|
|
M |
Source/platform/graphics/filters/Filter.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|