Chromium Code Reviews| 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) { |