mirror of
https://github.com/servo/servo.git
synced 2025-08-29 09:08:20 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -1141,7 +1141,7 @@ interface HTMLCanvasElement : HTMLElement {
|
|||
[CEReactions] attribute unsigned long width;
|
||||
[CEReactions] attribute unsigned long height;
|
||||
|
||||
RenderingContext? getContext(DOMString contextId, any... arguments);
|
||||
RenderingContext? getContext(DOMString contextId, optional any options = null);
|
||||
|
||||
USVString toDataURL(optional DOMString type, optional any quality);
|
||||
void toBlob(BlobCallback _callback, optional DOMString type, optional any quality);
|
||||
|
@ -1330,7 +1330,6 @@ interface mixin CanvasPath {
|
|||
void quadraticCurveTo(unrestricted double cpx, unrestricted double cpy, unrestricted double x, unrestricted double y);
|
||||
void bezierCurveTo(unrestricted double cp1x, unrestricted double cp1y, unrestricted double cp2x, unrestricted double cp2y, unrestricted double x, unrestricted double y);
|
||||
void arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radius);
|
||||
void arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation);
|
||||
void rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
void arc(unrestricted double x, unrestricted double y, unrestricted double radius, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
||||
void ellipse(unrestricted double x, unrestricted double y, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
||||
|
@ -1377,10 +1376,7 @@ interface ImageData {
|
|||
readonly attribute Uint8ClampedArray data;
|
||||
};
|
||||
|
||||
[Constructor,
|
||||
Constructor(Path2D path),
|
||||
Constructor(sequence<Path2D> paths, optional CanvasFillRule fillRule = "nonzero"),
|
||||
Constructor(DOMString d),
|
||||
[Constructor(optional (Path2D or DOMString) path),
|
||||
Exposed=(Window,Worker)]
|
||||
interface Path2D {
|
||||
void addPath(Path2D path, optional DOMMatrix2DInit transform);
|
||||
|
@ -1405,14 +1401,14 @@ dictionary ImageEncodeOptions {
|
|||
unrestricted double quality = 1.0;
|
||||
};
|
||||
|
||||
enum OffscreenRenderingContextType { "2d", "webgl" };
|
||||
enum OffscreenRenderingContextId { "2d", "webgl" };
|
||||
|
||||
[Constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height), Exposed=(Window,Worker), Transferable]
|
||||
interface OffscreenCanvas : EventTarget {
|
||||
attribute unsigned long long width;
|
||||
attribute unsigned long long height;
|
||||
|
||||
OffscreenRenderingContext? getContext(OffscreenRenderingContextType contextType, any... arguments);
|
||||
OffscreenRenderingContext? getContext(OffscreenRenderingContextId contextId, optional any options = null);
|
||||
ImageBitmap transferToImageBitmap();
|
||||
Promise<Blob> convertToBlob(optional ImageEncodeOptions options);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue