| Index: cc/trees/property_tree.cc
|
| diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
|
| index 91dd5c73a27d758af37a5b9b3c838ae5cfe5aa7c..6c0bf015c9cda8bef04b965bd559b0f147231c72 100644
|
| --- a/cc/trees/property_tree.cc
|
| +++ b/cc/trees/property_tree.cc
|
| @@ -1462,6 +1462,9 @@ void ScrollTree::FromProtobuf(const proto::PropertyTree& proto) {
|
|
|
| currently_scrolling_node_id_ = data.currently_scrolling_node_id();
|
|
|
| + // TODO(khushalsagar): This should probably be removed if the copy constructor
|
| + // for ScrollTree copies the |layer_id_to_scroll_offset_map_| as well.
|
| + layer_id_to_scroll_offset_map_.clear();
|
| for (int i = 0; i < data.layer_id_to_scroll_offset_map_size(); ++i) {
|
| const proto::ScrollOffsetMapEntry entry =
|
| data.layer_id_to_scroll_offset_map(i);
|
|
|