From 1f04d251842c816ce2778d2ded8fccd4e51f1148 Mon Sep 17 00:00:00 2001 From: autofoolip Date: Mon, 26 Aug 2019 11:30:49 +0000 Subject: [PATCH] Bug 1576068 [wpt PR 18629] - Update interfaces/cssom-view.idl, a=testonly Automatic update from web-platform-tests Update interfaces/cssom-view.idl (#18629) Source: https://github.com/tidoust/reffy-reports/blob/39e9fa7/whatwg/idl/cssom-view.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/575681768 -- wpt-commits: 33c263fb308d1c3f6ac6d2590d7292317262819d wpt-pr: 18629 --- .../tests/interfaces/cssom-view.idl | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/testing/web-platform/tests/interfaces/cssom-view.idl b/testing/web-platform/tests/interfaces/cssom-view.idl index 9567b134cf9b4..5d30ede1e40de 100644 --- a/testing/web-platform/tests/interfaces/cssom-view.idl +++ b/testing/web-platform/tests/interfaces/cssom-view.idl @@ -32,11 +32,11 @@ partial interface Window { [Replaceable] readonly attribute double pageXOffset; [Replaceable] readonly attribute double scrollY; [Replaceable] readonly attribute double pageYOffset; - void scroll(optional ScrollToOptions options); + void scroll(optional ScrollToOptions options = {}); void scroll(unrestricted double x, unrestricted double y); - void scrollTo(optional ScrollToOptions options); + void scrollTo(optional ScrollToOptions options = {}); void scrollTo(unrestricted double x, unrestricted double y); - void scrollBy(optional ScrollToOptions options); + void scrollBy(optional ScrollToOptions options = {}); void scrollBy(unrestricted double x, unrestricted double y); // client @@ -59,7 +59,7 @@ interface MediaQueryList : EventTarget { }; [Exposed=Window, - Constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict)] + Constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {})] interface MediaQueryListEvent : Event { readonly attribute CSSOMString media; readonly attribute boolean matches; @@ -103,12 +103,12 @@ dictionary ScrollIntoViewOptions : ScrollOptions { partial interface Element { DOMRectList getClientRects(); [NewObject] DOMRect getBoundingClientRect(); - void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg); - void scroll(optional ScrollToOptions options); + void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {}); + void scroll(optional ScrollToOptions options = {}); void scroll(unrestricted double x, unrestricted double y); - void scrollTo(optional ScrollToOptions options); + void scrollTo(optional ScrollToOptions options = {}); void scrollTo(unrestricted double x, unrestricted double y); - void scrollBy(optional ScrollToOptions options); + void scrollBy(optional ScrollToOptions options = {}); void scrollBy(unrestricted double x, unrestricted double y); attribute unrestricted double scrollTop; attribute unrestricted double scrollLeft; @@ -170,10 +170,10 @@ dictionary ConvertCoordinateOptions { }; interface mixin GeometryUtils { - sequence getBoxQuads(optional BoxQuadOptions options); - DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options); - DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options); - DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options); // XXX z,w turns into 0 + sequence getBoxQuads(optional BoxQuadOptions options = {}); + DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options = {}); + DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options = {}); + DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options = {}); // XXX z,w turns into 0 }; Text includes GeometryUtils; // like Range