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

Side by Side Diff: Source/core/dom/Element.idl

Issue 1231533002: Deprecate Element.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added tests Created 5 years, 5 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
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y); 89 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y);
90 attribute unrestricted double scrollTop; 90 attribute unrestricted double scrollTop;
91 attribute unrestricted double scrollLeft; 91 attribute unrestricted double scrollLeft;
92 readonly attribute long scrollWidth; 92 readonly attribute long scrollWidth;
93 readonly attribute long scrollHeight; 93 readonly attribute long scrollHeight;
94 readonly attribute long clientTop; 94 readonly attribute long clientTop;
95 readonly attribute long clientLeft; 95 readonly attribute long clientLeft;
96 readonly attribute long clientWidth; 96 readonly attribute long clientWidth;
97 readonly attribute long clientHeight; 97 readonly attribute long clientHeight;
98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce 98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce
99 // FIXME: offset* should only be on HTMLElement. 99 // FIXME: offset* should only be on HTMLElement. crbug.com/504578
100 [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element ? offsetParent; 100 [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Eleme nt? offsetParent;
101 [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop; 101 [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop;
102 [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft; 102 [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft;
103 [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth; 103 [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth;
104 [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight; 104 [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight;
105 105
106 // Non-standard APIs 106 // Non-standard APIs
107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
112 112
113 // Experimental accessibility API 113 // Experimental accessibility API
114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; 114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole;
(...skipping 11 matching lines...) Expand all
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
130 attribute EventHandler onwheel; 130 attribute EventHandler onwheel;
131 }; 131 };
132 132
133 Element implements ParentNode; 133 Element implements ParentNode;
134 Element implements ChildNode; 134 Element implements ChildNode;
135 Element implements NonDocumentTypeChildNode; 135 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698