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

Unified Diff: third_party/WebKit/Source/core/dom/DOMMatrix.idl

Issue 2283363003: GeometryInterface: Add DOMMatrixInit and fromMatrix(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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
Index: third_party/WebKit/Source/core/dom/DOMMatrix.idl
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.idl b/third_party/WebKit/Source/core/dom/DOMMatrix.idl
index 3d476ae76c709c54f1e55b76ff17c9f5d507a21b..db22f97daf1c6a6281c75178503eab5502141c61 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.idl
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.idl
@@ -13,6 +13,7 @@
] interface DOMMatrix : DOMMatrixReadOnly {
[RaisesException, NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
[RaisesException, NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
+ [RaisesException, NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
// These attributes are simple aliases for certain elements of the 4x4 matrix
inherit attribute unrestricted double a;
@@ -39,10 +40,14 @@
inherit attribute unrestricted double m43;
inherit attribute unrestricted double m44;
- // FIXME: Should implement some methods (See: crbug.com/388780)
+ // TODO(zino): Should implement rotateSelf() method (See: crbug.com/645878)
+ // TODO(zino): Should implement rotateFromVectorSelf() method (See: crbug.com/645882)
+ // TODO(zino): Should implement rotateAxisAngleSelf() method (See: crbug.com/645883)
+ // TODO(zino): Should implement setMatrixValue() method (See: crbug.com/645884)
+ // TODO(zino): Should remove scaleNonUniformSelf() method (See: crbug.com/645887)
// Mutable transform methods
- DOMMatrix multiplySelf(DOMMatrix other);
- DOMMatrix preMultiplySelf(DOMMatrix other);
+ [RaisesException] DOMMatrix multiplySelf(optional DOMMatrixInit other);
+ [RaisesException] DOMMatrix preMultiplySelf(optional DOMMatrixInit other);
DOMMatrix translateSelf(unrestricted double tx,
unrestricted double ty,
optional unrestricted double tz = 0);

Powered by Google App Engine
This is Rietveld 408576698