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

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: 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 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 SVGTransform.prototype.toString = function()
12 {
13 var transformTypes = {
14 "0": "SVG_TRANSFORM_UNKNOWN",
15 "1": "SVG_TRANSFORM_MATRIX",
16 "2": "SVG_TRANSFORM_TRANSLATE",
17 "3": "SVG_TRANSFORM_SCALE",
18 "4": "SVG_TRANSFORM_ROTATE",
19 "5": "SVG_TRANSFORM_SKEWX",
20 "6": "SVG_TRANSFORM_SKEWY"
21 };
22
23 return "type=" + transformTypes[this.type] + " matrix=" + dumpMatrix(this.ma trix);
24 }
OLDNEW
« 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