Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: LayoutTests/svg/dom/resources/SVGTransformList-helper.js

Issue 1177303004: Updated SVGListPropertyHelper as per SVG2 Spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed presubmit error Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/dom/SVGTransformList-with-existing-item-expected.txt ('k') | Source/core/svg/SVGPathSeg.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/resources/SVGTransformList-helper.js
diff --git a/LayoutTests/svg/dom/resources/SVGTransformList-helper.js b/LayoutTests/svg/dom/resources/SVGTransformList-helper.js
new file mode 100644
index 0000000000000000000000000000000000000000..3c4d0219433b71fd07e1afd63800e4bdba17d14c
--- /dev/null
+++ b/LayoutTests/svg/dom/resources/SVGTransformList-helper.js
@@ -0,0 +1,24 @@
+function dumpMatrix(matrix) {
+ return "[" + matrix.a.toFixed(1)
+ + " " + matrix.b.toFixed(1)
+ + " " + matrix.c.toFixed(1)
+ + " " + matrix.d.toFixed(1)
+ + " " + matrix.e.toFixed(1)
+ + " " + matrix.f.toFixed(1)
+ + "]";
+}
+
+SVGTransform.prototype.toString = function()
+{
+ var transformTypes = {
+ "0": "SVG_TRANSFORM_UNKNOWN",
+ "1": "SVG_TRANSFORM_MATRIX",
+ "2": "SVG_TRANSFORM_TRANSLATE",
+ "3": "SVG_TRANSFORM_SCALE",
+ "4": "SVG_TRANSFORM_ROTATE",
+ "5": "SVG_TRANSFORM_SKEWX",
+ "6": "SVG_TRANSFORM_SKEWY"
+ };
+
+ return "type=" + transformTypes[this.type] + " matrix=" + dumpMatrix(this.matrix);
+}
« no previous file with comments | « LayoutTests/svg/dom/SVGTransformList-with-existing-item-expected.txt ('k') | Source/core/svg/SVGPathSeg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698