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

Side by Side 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: small nits 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 unified diff | Download patch
OLDNEW
(Empty)
1 function dumpMatrix(matrix) {
2 return "[" + matrix.a.toFixed(1)
3 + " " + matrix.b.toFixed(1)
4 + " " + matrix.c.toFixed(1)
5 + " " + matrix.d.toFixed(1)
6 + " " + matrix.e.toFixed(1)
7 + " " + matrix.f.toFixed(1)
8 + "]";
9 }
10
11 function dumpTransform(transform) {
12 var transformTypes = {
13 "0": "SVG_TRANSFORM_UNKNOWN",
14 "1": "SVG_TRANSFORM_MATRIX",
15 "2": "SVG_TRANSFORM_TRANSLATE",
16 "3": "SVG_TRANSFORM_SCALE",
17 "4": "SVG_TRANSFORM_ROTATE",
18 "5": "SVG_TRANSFORM_SKEWX",
19 "6": "SVG_TRANSFORM_SKEWY"
20 };
21
22 return "type=" + transformTypes[transform.type] + " matrix=" + dumpMatrix(tr ansform.matrix);
23 }
fs 2015/06/17 16:02:05 Tip(?): Define a custom toString on SVGTransform i
Shanmuga Pandi 2015/06/18 11:30:45 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698