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

Unified Diff: Source/core/css/WebKitCSSMatrix.idl

Issue 927023003: Add TypeChecking=Unrestricted to the WebKitCSSMatrix interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/WebKitCSSMatrix.idl
diff --git a/Source/core/css/WebKitCSSMatrix.idl b/Source/core/css/WebKitCSSMatrix.idl
index 557dc03d5865c2b949fb5bedb3f96cde3199aa31..1bceb932de65312729550d409ac7a6aa83a0fcc5 100644
--- a/Source/core/css/WebKitCSSMatrix.idl
+++ b/Source/core/css/WebKitCSSMatrix.idl
@@ -29,33 +29,34 @@
ConstructorCallWith=ExecutionContext,
ImplementedAs=CSSMatrix,
RaisesException=Constructor,
+ TypeChecking=Unrestricted,
WillBeGarbageCollected
] interface WebKitCSSMatrix {
// These attributes are simple aliases for certain elements of the 4x4 matrix
- attribute double a; // alias for m11
- attribute double b; // alias for m12
- attribute double c; // alias for m21
- attribute double d; // alias for m22
- attribute double e; // alias for m41
- attribute double f; // alias for m42
+ attribute unrestricted double a; // alias for m11
+ attribute unrestricted double b; // alias for m12
+ attribute unrestricted double c; // alias for m21
+ attribute unrestricted double d; // alias for m22
+ attribute unrestricted double e; // alias for m41
+ attribute unrestricted double f; // alias for m42
- attribute double m11;
- attribute double m12;
- attribute double m13;
- attribute double m14;
- attribute double m21;
- attribute double m22;
- attribute double m23;
- attribute double m24;
- attribute double m31;
- attribute double m32;
- attribute double m33;
- attribute double m34;
- attribute double m41;
- attribute double m42;
- attribute double m43;
- attribute double m44;
+ attribute unrestricted double m11;
+ attribute unrestricted double m12;
+ attribute unrestricted double m13;
+ attribute unrestricted double m14;
+ attribute unrestricted double m21;
+ attribute unrestricted double m22;
+ attribute unrestricted double m23;
+ attribute unrestricted double m24;
+ attribute unrestricted double m31;
+ attribute unrestricted double m32;
+ attribute unrestricted double m33;
+ attribute unrestricted double m34;
+ attribute unrestricted double m41;
+ attribute unrestricted double m42;
+ attribute unrestricted double m43;
+ attribute unrestricted double m44;
[RaisesException] void setMatrixValue([Default=Undefined] optional DOMString string);
@@ -67,39 +68,39 @@
// Return this matrix translated by the passed values.
// Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations
- [Immutable] WebKitCSSMatrix translate([Default=Undefined] optional double x,
- [Default=Undefined] optional double y,
- [Default=Undefined] optional double z);
+ [Immutable] WebKitCSSMatrix translate([Default=Undefined] optional unrestricted double x,
+ [Default=Undefined] optional unrestricted double y,
+ [Default=Undefined] optional unrestricted double z);
// Returns this matrix scaled by the passed values.
// Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN
// makes it the same as scaleX. This allows the 3D form to used for 2D operations
- [Immutable] WebKitCSSMatrix scale([Default=Undefined] optional double scaleX,
- [Default=Undefined] optional double scaleY,
- [Default=Undefined] optional double scaleZ);
+ [Immutable] WebKitCSSMatrix scale([Default=Undefined] optional unrestricted double scaleX,
+ [Default=Undefined] optional unrestricted double scaleY,
+ [Default=Undefined] optional unrestricted double scaleZ);
// Returns this matrix rotated by the passed values.
// If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX).
// Otherwise use a rotation value of 0 for any passed NaN.
- [Immutable] WebKitCSSMatrix rotate([Default=Undefined] optional double rotX,
- [Default=Undefined] optional double rotY,
- [Default=Undefined] optional double rotZ);
+ [Immutable] WebKitCSSMatrix rotate([Default=Undefined] optional unrestricted double rotX,
+ [Default=Undefined] optional unrestricted double rotY,
+ [Default=Undefined] optional unrestricted double rotZ);
// Returns this matrix rotated about the passed axis by the passed angle.
// Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value
// of (0,0,1).
- [Immutable] WebKitCSSMatrix rotateAxisAngle([Default=Undefined] optional double x,
- [Default=Undefined] optional double y,
- [Default=Undefined] optional double z,
- [Default=Undefined] optional double angle);
+ [Immutable] WebKitCSSMatrix rotateAxisAngle([Default=Undefined] optional unrestricted double x,
+ [Default=Undefined] optional unrestricted double y,
+ [Default=Undefined] optional unrestricted double z,
+ [Default=Undefined] optional unrestricted double angle);
// Returns this matrix skewed along the X axis by the passed values.
// Passing a NaN will use a value of 0.
- [Immutable] WebKitCSSMatrix skewX([Default=Undefined] optional double angle);
+ [Immutable] WebKitCSSMatrix skewX([Default=Undefined] optional unrestricted double angle);
// Returns this matrix skewed along the Y axis by the passed values.
// Passing a NaN will use a value of 0.
- [Immutable] WebKitCSSMatrix skewY([Default=Undefined] optional double angle);
+ [Immutable] WebKitCSSMatrix skewY([Default=Undefined] optional unrestricted double angle);
[NotEnumerable] stringifier;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698