| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 interface Element : ParentNode { | 5 interface Element : ParentNode { |
| 6 readonly attribute DOMString tagName; | 6 readonly attribute DOMString tagName; |
| 7 | 7 |
| 8 boolean hasAttribute(DOMString name); | 8 boolean hasAttribute(DOMString name); |
| 9 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); | 9 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); |
| 10 [RaisesException] void setAttribute(DOMString name, optional DOMString value); | 10 [RaisesException] void setAttribute(DOMString name, optional DOMString value); |
| 11 void removeAttribute(DOMString name); | 11 void removeAttribute(DOMString name); |
| 12 | 12 |
| 13 sequence<Attr> getAttributes(); | 13 sequence<Attr> getAttributes(); |
| 14 | 14 |
| 15 readonly attribute ShadowRoot shadowRoot; | 15 readonly attribute ShadowRoot shadowRoot; |
| 16 | 16 |
| 17 // TODO(abarth): Move to Node. | 17 // TODO(abarth): Move to Node. |
| 18 readonly attribute CSSStyleDeclaration style; | 18 readonly attribute CSSStyleDeclaration style; |
| 19 | 19 |
| 20 // TODO(abarth): Remove these when we implement more of the system. | 20 // TODO(abarth): Remove these when we implement more of the system. |
| 21 [RaisesException] boolean matches(DOMString selectors); | 21 [RaisesException] boolean matches(DOMString selectors); |
| 22 void focus(); | 22 void focus(); |
| 23 void blur(); | 23 void blur(); |
| 24 attribute long tabIndex; | 24 attribute long tabIndex; |
| 25 readonly attribute DOMTokenList classList; | 25 readonly attribute DOMTokenList classList; |
| 26 [RaisesException] ShadowRoot ensureShadowRoot(); | 26 [RaisesException] ShadowRoot ensureShadowRoot(); |
| 27 |
| 28 ClientRect getBoundingClientRect(); |
| 27 readonly attribute long offsetLeft; | 29 readonly attribute long offsetLeft; |
| 28 readonly attribute long offsetTop; | 30 readonly attribute long offsetTop; |
| 29 readonly attribute long offsetWidth; | 31 readonly attribute long offsetWidth; |
| 30 readonly attribute long offsetHeight; | 32 readonly attribute long offsetHeight; |
| 31 readonly attribute Element offsetParent; | 33 readonly attribute Element offsetParent; |
| 32 readonly attribute long clientLeft; | 34 readonly attribute long clientLeft; |
| 33 readonly attribute long clientTop; | 35 readonly attribute long clientTop; |
| 34 readonly attribute long clientWidth; | 36 readonly attribute long clientWidth; |
| 35 readonly attribute long clientHeight; | 37 readonly attribute long clientHeight; |
| 36 }; | 38 }; |
| OLD | NEW |