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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 800613009: Convert scroll offsets to use SyncedProperty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up, rebase 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
Index: cc/trees/layer_tree_host_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 546aa6b6f8200f22fc479f376ebb6c30930318fe..774d12ea4aa060254f54510a58bd5d4aed954e21 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -7819,7 +7819,8 @@ TEST_F(LayerTreeHostCommonTest,
SetLayerPropertiesForTesting(fixed.get(), identity_transform, gfx::Point3F(),
gfx::PointF(3.0f, 4.0f), gfx::Size(50, 50), true,
false, false);
- scroll_layer->SetScrollOffsetAndDelta(scroll_offset, scroll_delta);
+ scroll_layer->SetScrollOffset(scroll_offset);
+ scroll_layer->SetScrollDelta(scroll_delta);
scroll_layer->SetMainScrollOffsetFractionalPart(main_scroll_fractional_part);
scroller->AddChild(fixed.Pass());

Powered by Google App Engine
This is Rietveld 408576698