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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2714043002: Store non-fast scrollable regions on ScrollNode (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/property_tree_builder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 969398354c27a08fbe0a5efc614eac2302d1ede4..283b09003d5b5bc15d1ce149fe506d5a74c0fe4b 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -10665,7 +10665,7 @@ TEST_F(LayerTreeHostCommonTest, ScrollTreeBuilderTest) {
property_tree_root->scrollable = false;
property_tree_root->main_thread_scrolling_reasons =
MainThreadScrollingReason::kNotScrollingOnMain;
- property_tree_root->contains_non_fast_scrollable_region = false;
+ property_tree_root->non_fast_scrollable_region = Region();
property_tree_root->transform_id = kRootPropertyTreeNodeId;
// The node owned by root1
@@ -10731,7 +10731,7 @@ TEST_F(LayerTreeHostCommonTest, ScrollTreeBuilderTest) {
ScrollNode scroll_parent5;
scroll_parent5.id = 8;
scroll_parent5.owning_layer_id = parent5->id();
- scroll_parent5.contains_non_fast_scrollable_region = true;
+ scroll_parent5.non_fast_scrollable_region = gfx::Rect(0, 0, 50, 50);
scroll_parent5.bounds = gfx::Size(10, 10);
scroll_parent5.should_flatten = true;
scroll_parent5.user_scrollable_horizontal = true;
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/property_tree_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698