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

Unified Diff: cc/layers/layer.h

Issue 800613009: Convert scroll offsets to use SyncedProperty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android WebView tests Created 5 years, 11 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 | « cc/base/synced_property.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 112d3f4d2204879b9eac8f9f4c1338d654f923de..db472c6aa3eda140e40f282358b791769c877ef0 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -318,9 +318,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
bool force_render_surface() const { return force_render_surface_; }
gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); }
- gfx::ScrollOffset TotalScrollOffset() const {
- return ScrollOffsetWithDelta(scroll_offset(), ScrollDelta());
- }
+ gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; }
void SetDoubleSided(bool double_sided);
bool double_sided() const { return double_sided_; }
« no previous file with comments | « cc/base/synced_property.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698