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

Side by Side Diff: sky/engine/core/dom/Element.idl

Issue 942543002: Add back Element#getBoundingClient rect (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698