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

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: 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
Index: Source/core/dom/Element.idl
diff --git a/Source/core/dom/Element.idl b/Source/core/dom/Element.idl
index 2d0574cfa815845e8441d21b7fbdeb810a129890..4d09892ded504628052b5587ef9a6e27910deea5 100644
--- a/Source/core/dom/Element.idl
+++ b/Source/core/dom/Element.idl
@@ -97,11 +97,11 @@
readonly attribute long clientHeight;
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
// FIXME: offset* should only be on HTMLElement.
philipj_slow 2015/07/08 12:16:20 Add crbug.com/504578 to the end of this comment.
tanay.c 2015/07/10 09:07:20 Done.
- [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;
+ [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

Powered by Google App Engine
This is Rietveld 408576698