skia2/modules/svg/src
Tyler Denniston dcf288ba82 [svg] Fix filter region bounds
When the filter units are objectBoundingBox, values are fractions/pcts
of the object's bounding box, which we were miscomputing.

Also adding in a small tweak to return bounds for <polygon> elements
(will be needed for future filter tests).

Bug: skia:10841
Change-Id: I7fcac21258570d872672c42e99a9739a65c53e30
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343520
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2020-12-15 16:15:19 +00:00
..
SkSVGAttribute.cpp [svg] Add feFlood filter node 2020-12-11 15:02:20 +00:00
SkSVGAttributeParser.cpp [svg] Convert stop-color and stop-opacity to presentation attrs 2020-12-09 21:37:17 +00:00
SkSVGCircle.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGClipPath.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGContainer.cpp [svg] Implement gradientUnits="objectBoundingBox" 2020-10-27 19:56:28 +00:00
SkSVGDOM.cpp [svg] Add feFlood filter node 2020-12-11 15:02:20 +00:00
SkSVGEllipse.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGFe.cpp [svg] Prep work for filter primitive subregion 2020-12-11 18:21:21 +00:00
SkSVGFeColorMatrix.cpp [svg] Prep work for filter primitive subregion 2020-12-11 18:21:21 +00:00
SkSVGFeComposite.cpp [svg] Prep work for filter primitive subregion 2020-12-11 18:21:21 +00:00
SkSVGFeFlood.cpp [svg] Prep work for filter primitive subregion 2020-12-11 18:21:21 +00:00
SkSVGFeTurbulence.cpp [svg] Prep work for filter primitive subregion 2020-12-11 18:21:21 +00:00
SkSVGFilter.cpp [svg] Fix filter region bounds 2020-12-15 16:15:19 +00:00
SkSVGFilterContext.cpp [svg] Implement feComposite, basic filter result storage 2020-11-10 14:00:56 +00:00
SkSVGGradient.cpp [svg] Minor cleanups 2020-12-11 16:25:20 +00:00
SkSVGLine.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGLinearGradient.cpp [svg] Use new parsing for gradient classes 2020-11-10 19:04:49 +00:00
SkSVGNode.cpp [svg] Add feFlood filter node 2020-12-11 15:02:20 +00:00
SkSVGPath.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGPattern.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGPoly.cpp [svg] Fix filter region bounds 2020-12-15 16:15:19 +00:00
SkSVGRadialGradient.cpp [svg] Handle zero-radius radial gradients 2020-11-22 19:12:10 +00:00
SkSVGRect.cpp [svg] Implement gradientUnits="objectBoundingBox" 2020-10-27 19:56:28 +00:00
SkSVGRenderContext.cpp [svg] Minor cleanups 2020-12-11 16:25:20 +00:00
SkSVGShape.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00
SkSVGStop.cpp [svg] Convert stop-color and stop-opacity to presentation attrs 2020-12-09 21:37:17 +00:00
SkSVGSVG.cpp [svg] Add support for preserveAspectRatio 2020-10-21 22:10:33 +00:00
SkSVGText.cpp [svg] Minor cleanups 2020-12-11 16:25:20 +00:00
SkSVGTransformableNode.cpp [svg] Implement gradientUnits="objectBoundingBox" 2020-10-27 19:56:28 +00:00
SkSVGUse.cpp [svg] Implement gradientUnits="objectBoundingBox" 2020-10-27 19:56:28 +00:00
SkSVGValue.cpp Reland "[svg] Relocate out of experimental" 2020-10-16 02:32:41 +00:00