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

Unified Diff: Source/core/dom/Element.h

Issue 340903002: Revert "Subpixel precision for clientWidth, offsetWidth, scrollTop et al" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 6 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 | « Source/bindings/v8/custom/V8ElementCustom.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 788c15b05180e8186cea26e363bc6b8197f9cc99..b3972e8a490f1d78092558e52a88c13fa933de08 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -184,28 +184,28 @@ public:
void scrollByLines(int lines);
void scrollByPages(int pages);
- double offsetLeft();
- double offsetTop();
- double offsetWidth();
- double offsetHeight();
+ int offsetLeft();
+ int offsetTop();
+ int offsetWidth();
+ int offsetHeight();
// FIXME: Replace uses of offsetParent in the platform with calls
// to the render layer and merge offsetParentForBindings and offsetParent.
Element* offsetParentForBindings();
Element* offsetParent();
- double clientLeft();
- double clientTop();
- double clientWidth();
- double clientHeight();
- virtual double scrollLeft();
- virtual double scrollTop();
- virtual void setScrollLeft(double);
+ int clientLeft();
+ int clientTop();
+ int clientWidth();
+ int clientHeight();
+ virtual int scrollLeft();
+ virtual int scrollTop();
+ virtual void setScrollLeft(int);
virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState&);
- virtual void setScrollTop(double);
+ virtual void setScrollTop(int);
virtual void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&);
- virtual double scrollWidth();
- virtual double scrollHeight();
+ virtual int scrollWidth();
+ virtual int scrollHeight();
IntRect boundsInRootViewSpace();
« no previous file with comments | « Source/bindings/v8/custom/V8ElementCustom.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698