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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/trees/layer_tree_settings.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 5573c325f652db9dfb3759d5ba503e061432e29c..1afd4bddf24e3b43885d4eb2c74e6d20da8c0176 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -194,8 +194,8 @@ void AddTransformNodeIfNeeded(const DataForRecursion& data_from_ancestor,
// record, the slight difference should be inconsequential).
gfx::Vector2dF position = layer->position().OffsetFromOrigin();
if (!layer->scroll_parent()) {
- position -= gfx::Vector2dF(layer->TotalScrollOffset().x(),
- layer->TotalScrollOffset().y());
+ position -= gfx::Vector2dF(layer->CurrentScrollOffset().x(),
+ layer->CurrentScrollOffset().y());
}
position += parent_offset;
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698