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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.idl
diff --git a/Source/core/dom/Element.idl b/Source/core/dom/Element.idl
index 2d0574cfa815845e8441d21b7fbdeb810a129890..f89083b282dd9c3283e36f77c6da6a0c60256df4 100644
--- a/Source/core/dom/Element.idl
+++ b/Source/core/dom/Element.idl
@@ -96,12 +96,12 @@
readonly attribute long clientWidth;
readonly attribute long clientHeight;
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
- // FIXME: offset* should only be on HTMLElement.
- [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element? offsetParent;
- [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop;
- [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft;
- [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth;
- [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight;
+ // FIXME: offset* should only be on HTMLElement. crbug.com/504578
+ [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element? offsetParent;
+ [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop;
+ [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft;
+ [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth;
+ [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight;
// Non-standard APIs
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
« 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