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

Unified Diff: cc/trees/property_tree.cc

Issue 2393213002: cc: Update scroll offset before property tree scrolling and animation. (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index acc34795448ed974e952394e018b5092d051f8e9..60bdf19ed46e8d46e56a8c632436926b5935b449 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -1591,6 +1591,9 @@ void ScrollTree::UpdateScrollOffsetMapEntry(
layer_tree_impl->DidUpdateScrollOffset(key);
}
} else {
+ changed |=
+ current_scroll_offset(key) !=
+ new_scroll_offset_map->at(key)->Current(property_trees()->is_active);
ajuma 2016/10/05 17:19:21 I wonder if we're just missing a case here. In the
sunxd 2016/10/05 18:48:26 I think as long as we overwrite the scroll offset
ajuma 2016/10/05 19:16:05 Ah, makes sense now, thanks for the explanation! P
layer_id_to_scroll_offset_map_[key] = new_scroll_offset_map->at(key);
changed |= synced_scroll_offset(key)->PushPendingToActive();
if (changed) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698