| OLD | NEW |
| 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 Loading... |
| 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 // TODO(sunyunjia): Add default value for scrollIntoView() once |
| 99 // crbug.com/734599 is fixed. |
| 98 void scrollIntoView(optional (ScrollIntoViewOptions or boolean) arg); | 100 void scrollIntoView(optional (ScrollIntoViewOptions or boolean) arg); |
| 99 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); | 101 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); |
| 100 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); | 102 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); |
| 101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); | 103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
| 102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); | 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); |
| 103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); | 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); |
| 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre
stricted double y); | 106 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre
stricted double y); |
| 105 attribute unrestricted double scrollTop; | 107 attribute unrestricted double scrollTop; |
| 106 attribute unrestricted double scrollLeft; | 108 attribute unrestricted double scrollLeft; |
| 107 readonly attribute long scrollWidth; | 109 readonly attribute long scrollWidth; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 attribute EventHandler oncut; | 141 attribute EventHandler oncut; |
| 140 attribute EventHandler onpaste; | 142 attribute EventHandler onpaste; |
| 141 attribute EventHandler onsearch; | 143 attribute EventHandler onsearch; |
| 142 attribute EventHandler onselectstart; | 144 attribute EventHandler onselectstart; |
| 143 attribute EventHandler onwheel; | 145 attribute EventHandler onwheel; |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 Element implements ParentNode; | 148 Element implements ParentNode; |
| 147 Element implements ChildNode; | 149 Element implements ChildNode; |
| 148 Element implements NonDocumentTypeChildNode; | 150 Element implements NonDocumentTypeChildNode; |
| OLD | NEW |