Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Element.idl |
| diff --git a/third_party/WebKit/Source/core/dom/Element.idl b/third_party/WebKit/Source/core/dom/Element.idl |
| index f642b455026e80b37cbe48f0996bc713172f60e2..09b59264fb97d535f6063e021657676d2f9c6dcb 100644 |
| --- a/third_party/WebKit/Source/core/dom/Element.idl |
| +++ b/third_party/WebKit/Source/core/dom/Element.idl |
| @@ -95,7 +95,8 @@ interface Element : Node { |
| ClientRectList getClientRects(); |
| ClientRect getBoundingClientRect(); |
| - void scrollIntoView(optional (ScrollIntoViewOptions or boolean)? arg); |
| + void scrollIntoView(); |
| + void scrollIntoView((ScrollIntoViewOptions or boolean)? arg); |
|
foolip
2017/06/15 08:38:04
This argument should not be nullable.
sunyunjia
2017/06/15 18:00:26
If I remove the "?", and pass in null or undefined
foolip
2017/06/15 19:41:53
The "If arg is not specified" case in the spec wou
|
| [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optional ScrollToOptions options); |
| [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unrestricted double x, unrestricted double y); |
| [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions options); |