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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 readonly attribute long offsetLeft; | 62 readonly attribute long offsetLeft; |
63 readonly attribute long offsetTop; | 63 readonly attribute long offsetTop; |
64 readonly attribute long offsetWidth; | 64 readonly attribute long offsetWidth; |
65 readonly attribute long offsetHeight; | 65 readonly attribute long offsetHeight; |
66 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent; | 66 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent; |
67 readonly attribute long clientLeft; | 67 readonly attribute long clientLeft; |
68 readonly attribute long clientTop; | 68 readonly attribute long clientTop; |
69 readonly attribute long clientWidth; | 69 readonly attribute long clientWidth; |
70 readonly attribute long clientHeight; | 70 readonly attribute long clientHeight; |
71 | 71 |
72 // FIXME: should be: | 72 attribute double scrollLeft; |
73 // attribute (Dictionary or double) scrollLeft; | 73 attribute double scrollTop; |
74 // attribute (Dictionary or double) scrollTop; | |
75 // http://crbug.com/240176 | |
76 [Custom=Setter] attribute double scrollLeft; | |
77 [Custom=Setter] attribute double scrollTop; | |
Ian Vollick
2014/12/08 16:35:23
Cool. It's really nice that you were able to ditch
| |
78 readonly attribute long scrollWidth; | 74 readonly attribute long scrollWidth; |
79 readonly attribute long scrollHeight; | 75 readonly attribute long scrollHeight; |
80 | 76 |
77 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(double x, double y); | |
78 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional ScrollToOptions scrollToOptions); | |
Jens Widell
2014/12/08 16:19:07
[Default=Undefined] has no effect on optional dict
ajuma
2014/12/08 18:34:13
Done.
| |
79 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(double x, double y); | |
80 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona l ScrollToOptions scrollToOptions); | |
81 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(double x, double y); | |
82 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona l ScrollToOptions scrollToOptions); | |
83 | |
81 void focus(); | 84 void focus(); |
82 void blur(); | 85 void blur(); |
83 void scrollIntoView(optional boolean alignWithTop); | 86 void scrollIntoView(optional boolean alignWithTop); |
84 | 87 |
85 // WebKit extensions | 88 // WebKit extensions |
86 | 89 |
87 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); | 90 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); |
88 | 91 |
89 // HTML 5 | 92 // HTML 5 |
90 HTMLCollection getElementsByClassName(DOMString classNames); | 93 HTMLCollection getElementsByClassName(DOMString classNames); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 attribute EventHandler onselectstart; | 128 attribute EventHandler onselectstart; |
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 130 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 131 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 132 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
130 attribute EventHandler onwheel; | 133 attribute EventHandler onwheel; |
131 }; | 134 }; |
132 | 135 |
133 Element implements ParentNode; | 136 Element implements ParentNode; |
134 Element implements ChildNode; | 137 Element implements ChildNode; |
OLD | NEW |