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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2616353003: Clarify property tree id-to-index map names. (Closed)
Patch Set: Sync to head. Created 3 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_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index d7559a11a91ee6dac61611d01011bc95558e7ce8..145b3e7b86fcdf49594b0f869d635af0c5dae7d7 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3953,7 +3953,7 @@ void LayerTreeHostImpl::SetTreeLayerScrollOffsetMutated(
// TODO(wkorman): Build map from element id to scroll node in property tree
// builder and make use of it below.
const int scroll_node_index =
- property_trees->scroll_id_to_index_map[layer_id];
+ property_trees->layer_id_to_scroll_node_index[layer_id];
if (scroll_node_index != ScrollTree::kInvalidNodeId) {
property_trees->scroll_tree.OnScrollOffsetAnimated(
layer_id, transform_node_index, scroll_node_index, scroll_offset, tree);
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698