Bug 1241723. Update WebKitCSSMatrix.idl to match latest spec updates. r=baku

The following methods have been updated to match WebKit's behavior,
taking optional arguments that default to 0:

rotateAxisAngle()
skewX()
skewY()
translate()
This commit is contained in:
Mike Taylor 2016-01-26 17:48:20 -06:00
Родитель 10d60e258b
Коммит d8112ef98f
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -20,19 +20,19 @@ interface WebKitCSSMatrix : DOMMatrix {
// Immutable transform methods // Immutable transform methods
WebKitCSSMatrix multiply(WebKitCSSMatrix other); WebKitCSSMatrix multiply(WebKitCSSMatrix other);
WebKitCSSMatrix inverse(); WebKitCSSMatrix inverse();
WebKitCSSMatrix translate(unrestricted double tx, WebKitCSSMatrix translate(optional unrestricted double tx = 0,
unrestricted double ty, optional unrestricted double ty = 0,
unrestricted double tz); optional unrestricted double tz = 0);
WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, WebKitCSSMatrix scale(optional unrestricted double scaleX = 1,
optional unrestricted double scaleY, optional unrestricted double scaleY,
optional unrestricted double scaleZ = 1); optional unrestricted double scaleZ = 1);
WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, WebKitCSSMatrix rotate(optional unrestricted double rotX = 0,
optional unrestricted double rotY, optional unrestricted double rotY,
optional unrestricted double rotZ); optional unrestricted double rotZ);
WebKitCSSMatrix rotateAxisAngle(unrestricted double x, WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0,
unrestricted double y, optional unrestricted double y = 0,
unrestricted double z, optional unrestricted double z = 0,
unrestricted double angle); optional unrestricted double angle = 0);
WebKitCSSMatrix skewX(unrestricted double sx); WebKitCSSMatrix skewX(optional unrestricted double sx = 0);
WebKitCSSMatrix skewY(unrestricted double sy); WebKitCSSMatrix skewY(optional unrestricted double sy = 0);
}; };