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

Side by Side Diff: Source/core/css/WebKitCSSMatrix.idl

Issue 337343002: IDL: make optional arguments (without default) explicit sometimes Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-default-arguments-next
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/css/StyleMedia.idl ('k') | Source/core/dom/DOMImplementation.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 attribute double m24; 49 attribute double m24;
50 attribute double m31; 50 attribute double m31;
51 attribute double m32; 51 attribute double m32;
52 attribute double m33; 52 attribute double m33;
53 attribute double m34; 53 attribute double m34;
54 attribute double m41; 54 attribute double m41;
55 attribute double m42; 55 attribute double m42;
56 attribute double m43; 56 attribute double m43;
57 attribute double m44; 57 attribute double m44;
58 58
59 [RaisesException] void setMatrixValue([Default=Undefined] optional DOMString string); 59 [RaisesException] void setMatrixValue(optional DOMString string);
60 60
61 // Multiply this matrix by secondMatrix, on the right (result = this * secon dMatrix) 61 // Multiply this matrix by secondMatrix, on the right (result = this * secon dMatrix)
62 [Immutable] WebKitCSSMatrix multiply([Default=Undefined] optional WebKitCSSM atrix secondMatrix); 62 [Immutable] WebKitCSSMatrix multiply(optional WebKitCSSMatrix secondMatrix);
63 63
64 // Return the inverse of this matrix. Throw an exception if the matrix is no t invertible 64 // Return the inverse of this matrix. Throw an exception if the matrix is no t invertible
65 [Immutable, RaisesException] WebKitCSSMatrix inverse(); 65 [Immutable, RaisesException] WebKitCSSMatrix inverse();
66 66
67 // Return this matrix translated by the passed values. 67 // Return this matrix translated by the passed values.
68 // Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations 68 // Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations
69 [Immutable] WebKitCSSMatrix translate([Default=Undefined] optional double x, 69 [Immutable] WebKitCSSMatrix translate(optional double x,
70 [Default=Undefined] optional double y, 70 optional double y,
71 [Default=Undefined] optional double z) ; 71 optional double z);
72 72
73 // Returns this matrix scaled by the passed values. 73 // Returns this matrix scaled by the passed values.
74 // Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN 74 // Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN
75 // makes it the same as scaleX. This allows the 3D form to used for 2D opera tions 75 // makes it the same as scaleX. This allows the 3D form to used for 2D opera tions
76 [Immutable] WebKitCSSMatrix scale([Default=Undefined] optional double scaleX , 76 [Immutable] WebKitCSSMatrix scale(optional double scaleX,
77 [Default=Undefined] optional double scaleY , 77 optional double scaleY,
78 [Default=Undefined] optional double scaleZ ); 78 optional double scaleZ);
79 79
80 // Returns this matrix rotated by the passed values. 80 // Returns this matrix rotated by the passed values.
81 // If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX ). 81 // If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX ).
82 // Otherwise use a rotation value of 0 for any passed NaN. 82 // Otherwise use a rotation value of 0 for any passed NaN.
83 [Immutable] WebKitCSSMatrix rotate([Default=Undefined] optional double rotX, 83 [Immutable] WebKitCSSMatrix rotate(optional double rotX,
84 [Default=Undefined] optional double rotY, 84 optional double rotY,
85 [Default=Undefined] optional double rotZ) ; 85 optional double rotZ);
86 86
87 // Returns this matrix rotated about the passed axis by the passed angle. 87 // Returns this matrix rotated about the passed axis by the passed angle.
88 // Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value 88 // Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value
89 // of (0,0,1). 89 // of (0,0,1).
90 [Immutable] WebKitCSSMatrix rotateAxisAngle([Default=Undefined] optional dou ble x, 90 [Immutable] WebKitCSSMatrix rotateAxisAngle(optional double x,
91 [Default=Undefined] optional dou ble y, 91 optional double y,
92 [Default=Undefined] optional dou ble z, 92 optional double z,
93 [Default=Undefined] optional dou ble angle); 93 optional double angle);
94 94
95 // Returns this matrix skewed along the X axis by the passed values. 95 // Returns this matrix skewed along the X axis by the passed values.
96 // Passing a NaN will use a value of 0. 96 // Passing a NaN will use a value of 0.
97 [Immutable] WebKitCSSMatrix skewX([Default=Undefined] optional double angle) ; 97 [Immutable] WebKitCSSMatrix skewX(optional double angle);
98 98
99 // Returns this matrix skewed along the Y axis by the passed values. 99 // Returns this matrix skewed along the Y axis by the passed values.
100 // Passing a NaN will use a value of 0. 100 // Passing a NaN will use a value of 0.
101 [Immutable] WebKitCSSMatrix skewY([Default=Undefined] optional double angle) ; 101 [Immutable] WebKitCSSMatrix skewY(optional double angle);
102 102
103 [NotEnumerable] stringifier; 103 [NotEnumerable] stringifier;
104 }; 104 };
105 105
OLDNEW
« no previous file with comments | « Source/core/css/StyleMedia.idl ('k') | Source/core/dom/DOMImplementation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698