Percentages are calculated wrong in SVG transform CSS property
https://bugs.webkit.org/show_bug.cgi?id=172901
Reviewed by Zalan Bujtas.
Source/WebCore:
The code added in r217236 was just fetching viewBox(), but that can be empty.
SVGLengthContext::determineViewport() does the correct thing to get
the appropriate viewport.
Test: svg/transforms/percent-transform-values-viewbox.html
* svg/SVGGraphicsElement.cpp:
(WebCore::SVGGraphicsElement::animatedLocalTransform):
LayoutTests:
* svg/transforms/percent-transform-values-viewbox-expected.html: Added.
* svg/transforms/percent-transform-values-viewbox.html: Added.
* svg/transforms/transform-origin-css-property-expected.xhtml:
* svg/transforms/transform-origin-css-property.xhtml: Make this test a bit less
annoying to maintain by applying the transforms relative to the fill-box, which means all
the transform origins are no longer offset by the box position. Other tests exercise
view-box relative transform origins.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@217776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 7db242e..ebc129f 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,18 @@
+2017-06-04 Simon Fraser <simon.fraser@apple.com>
+
+ Percentages are calculated wrong in SVG transform CSS property
+ https://bugs.webkit.org/show_bug.cgi?id=172901
+
+ Reviewed by Zalan Bujtas.
+
+ * svg/transforms/percent-transform-values-viewbox-expected.html: Added.
+ * svg/transforms/percent-transform-values-viewbox.html: Added.
+ * svg/transforms/transform-origin-css-property-expected.xhtml:
+ * svg/transforms/transform-origin-css-property.xhtml: Make this test a bit less
+ annoying to maintain by applying the transforms relative to the fill-box, which means all
+ the transform origins are no longer offset by the box position. Other tests exercise
+ view-box relative transform origins.
+
2017-06-04 Eric Carlson <eric.carlson@apple.com>
[MediaStream] Page capture state not reported correctly