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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.idl

Issue 2936283003: Update CSSOM SmoothScroll Web Platform Test (Closed)
Patch Set: format Created 3 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface 88 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface
89 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); 89 [MeasureAs=ElementRequestPointerLock] void requestPointerLock();
90 90
91 // CSSOM View Module 91 // CSSOM View Module
92 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface 92 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface
93 // FIXME: getClientRect() and getBoundingClientRect() should 93 // FIXME: getClientRect() and getBoundingClientRect() should
94 // return DOMRectList and DOMRect respectively. 94 // return DOMRectList and DOMRect respectively.
95 ClientRectList getClientRects(); 95 ClientRectList getClientRects();
96 ClientRect getBoundingClientRect(); 96 ClientRect getBoundingClientRect();
97 97
98 void scrollIntoView(optional (ScrollIntoViewOptions or boolean)? arg); 98 void scrollIntoView();
99 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
99 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options); 100 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options);
100 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y); 101 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y);
101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions); 102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions);
102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y); 103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y);
103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions); 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions);
104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y); 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y);
105 attribute unrestricted double scrollTop; 106 attribute unrestricted double scrollTop;
106 attribute unrestricted double scrollLeft; 107 attribute unrestricted double scrollLeft;
107 readonly attribute long scrollWidth; 108 readonly attribute long scrollWidth;
108 readonly attribute long scrollHeight; 109 readonly attribute long scrollHeight;
(...skipping 30 matching lines...) Expand all
139 attribute EventHandler oncut; 140 attribute EventHandler oncut;
140 attribute EventHandler onpaste; 141 attribute EventHandler onpaste;
141 attribute EventHandler onsearch; 142 attribute EventHandler onsearch;
142 attribute EventHandler onselectstart; 143 attribute EventHandler onselectstart;
143 attribute EventHandler onwheel; 144 attribute EventHandler onwheel;
144 }; 145 };
145 146
146 Element implements ParentNode; 147 Element implements ParentNode;
147 Element implements ChildNode; 148 Element implements ChildNode;
148 Element implements NonDocumentTypeChildNode; 149 Element implements NonDocumentTypeChildNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698