| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // DOM4 | 54 // DOM4 |
| 55 [Reflect] attribute DOMString id; | 55 [Reflect] attribute DOMString id; |
| 56 [TreatReturnedNullStringAs=Null] readonly attribute DOMString namespaceURI; | 56 [TreatReturnedNullStringAs=Null] readonly attribute DOMString namespaceURI; |
| 57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set
ter] attribute DOMString prefix; | 57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set
ter] attribute DOMString prefix; |
| 58 [TreatReturnedNullStringAs=Null] readonly attribute DOMString localName; | 58 [TreatReturnedNullStringAs=Null] readonly attribute DOMString localName; |
| 59 | 59 |
| 60 [RaisesException] boolean matches(DOMString selectors); | 60 [RaisesException] boolean matches(DOMString selectors); |
| 61 | 61 |
| 62 // Common extensions | 62 // Common extensions |
| 63 | 63 |
| 64 readonly attribute double offsetLeft; | 64 readonly attribute long offsetLeft; |
| 65 readonly attribute double offsetTop; | 65 readonly attribute long offsetTop; |
| 66 readonly attribute double offsetWidth; | 66 readonly attribute long offsetWidth; |
| 67 readonly attribute double offsetHeight; | 67 readonly attribute long offsetHeight; |
| 68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute
Element offsetParent; | 68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute
Element offsetParent; |
| 69 readonly attribute double clientLeft; | 69 readonly attribute long clientLeft; |
| 70 readonly attribute double clientTop; | 70 readonly attribute long clientTop; |
| 71 readonly attribute double clientWidth; | 71 readonly attribute long clientWidth; |
| 72 readonly attribute double clientHeight; | 72 readonly attribute long clientHeight; |
| 73 | 73 |
| 74 // FIXME: should be: | 74 // FIXME: should be: |
| 75 // attribute (Dictionary or double) scrollLeft; | 75 // attribute (Dictionary or double) scrollLeft; |
| 76 // attribute (Dictionary or double) scrollTop; | 76 // attribute (Dictionary or double) scrollTop; |
| 77 // http://crbug.com/240176 | 77 // http://crbug.com/240176 |
| 78 [Custom=Setter] attribute double scrollLeft; | 78 [Custom=Setter] attribute long scrollLeft; |
| 79 [Custom=Setter] attribute double scrollTop; | 79 [Custom=Setter] attribute long scrollTop; |
| 80 readonly attribute double scrollWidth; | 80 readonly attribute long scrollWidth; |
| 81 readonly attribute double scrollHeight; | 81 readonly attribute long scrollHeight; |
| 82 | 82 |
| 83 void focus(); | 83 void focus(); |
| 84 void blur(); | 84 void blur(); |
| 85 void scrollIntoView(optional boolean alignWithTop); | 85 void scrollIntoView(optional boolean alignWithTop); |
| 86 | 86 |
| 87 // WebKit extensions | 87 // WebKit extensions |
| 88 | 88 |
| 89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); | 89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); |
| 90 [MeasureAs=ElementScrollByLines] void scrollByLines([Default=Undefined] opti
onal long lines); | 90 [MeasureAs=ElementScrollByLines] void scrollByLines([Default=Undefined] opti
onal long lines); |
| 91 [MeasureAs=ElementScrollByPages] void scrollByPages([Default=Undefined] opti
onal long pages); | 91 [MeasureAs=ElementScrollByPages] void scrollByPages([Default=Undefined] opti
onal long pages); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 139 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
| 140 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 140 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
| 141 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 141 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
| 142 attribute EventHandler onwebkitfullscreenchange; | 142 attribute EventHandler onwebkitfullscreenchange; |
| 143 attribute EventHandler onwebkitfullscreenerror; | 143 attribute EventHandler onwebkitfullscreenerror; |
| 144 [LogActivity=SetterOnly] attribute EventHandler onwheel; | 144 [LogActivity=SetterOnly] attribute EventHandler onwheel; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 Element implements ParentNode; | 147 Element implements ParentNode; |
| 148 Element implements ChildNode; | 148 Element implements ChildNode; |
| OLD | NEW |