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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 1385123003: Delete scrollCompensationAdjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 9 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 | « third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index 023ba97970c5f7120d74a400808c284429115ebd..1542ca15fc21f75bf0b7b4c5bcb3b5c73bfca192 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -155,18 +155,6 @@ public:
// Scrolling
virtual void setScrollPositionDouble(WebDoublePoint) = 0;
virtual WebDoublePoint scrollPositionDouble() const = 0;
- // Blink tells cc the scroll offset through setScrollPositionDouble() using
- // floating precision but it currently can only position cc layers at integer
- // boundary. So Blink needs to also call setScrollCompensationAdjustment()
- // to tell cc what's the part of the scroll offset that Blink doesn't handle
- // but cc needs to take into consideration, e.g. compensating
- // for fixed-position layer that's positioned in Blink using only integer scroll
- // offset.
- // We make this call explicit, instead of letting cc to infer the fractional part
- // from the scroll offset, to be clear that this is Blink's limitation. Once
- // Blink can fully handle fractional scroll offset, it can stop calling
- // this function and cc side would just work.
- virtual void setScrollCompensationAdjustment(WebDoublePoint) = 0;
// To set a WebLayer as scrollable we must specify the corresponding clip layer.
virtual void setScrollClipLayer(WebLayer*) = 0;
« no previous file with comments | « third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698