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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: tweaks and docs Created 4 years, 2 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: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 426fe4ed246d2aa856b7670cefd607aa00f5b979..923e46615877c2bc8aaa959a68fb91ce345ef578 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -551,9 +551,9 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
virtual void setScrollLeft(LayoutUnit);
virtual void setScrollTop(LayoutUnit);
- void scrollToOffset(const DoubleSize&,
- ScrollBehavior = ScrollBehaviorInstant);
- void scrollByRecursively(const DoubleSize& delta);
+ void scrollToPosition(const FloatPoint&,
+ ScrollBehavior = ScrollBehaviorInstant);
+ void scrollByRecursively(const ScrollOffset& delta);
// If makeVisibleInVisualViewport is set, the visual viewport will be scrolled
// if required to make the rect visible.
void scrollRectToVisible(const LayoutRect&,

Powered by Google App Engine
This is Rietveld 408576698