Chromium Code Reviews| Index: cc/layers/layer.cc |
| diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc |
| index 72a530a3bf3f15434f20742c1e569175560f6963..64db1ecda23d7a5d9c67232e5af7448c1fc6d275 100644 |
| --- a/cc/layers/layer.cc |
| +++ b/cc/layers/layer.cc |
| @@ -1129,6 +1129,7 @@ void Layer::PushPropertiesTo(LayerImpl* layer) { |
| bool use_paint_properties = paint_properties_.source_frame_number == |
| layer_tree_host_->SourceFrameNumber(); |
| + layer->SetElementId(inputs_.element_id); |
|
pdr.
2017/04/15 06:02:00
LayerTreeHostImplTest.ScrollbarVisibilityChangeCau
enne (OOO)
2017/04/18 00:47:57
Good catch! That sounds like a terrible thing to h
pdr.
2017/04/18 04:34:11
We do have a big comment in element_id.h that is..
|
| layer->SetBackgroundColor(inputs_.background_color); |
| layer->SetSafeOpaqueBackgroundColor(safe_opaque_background_color_); |
| layer->SetBounds(use_paint_properties ? paint_properties_.bounds |
| @@ -1169,7 +1170,6 @@ void Layer::PushPropertiesTo(LayerImpl* layer) { |
| layer->SetScrollClipLayer(inputs_.scroll_clip_layer_id); |
| layer->set_user_scrollable_horizontal(inputs_.user_scrollable_horizontal); |
| layer->set_user_scrollable_vertical(inputs_.user_scrollable_vertical); |
| - layer->SetElementId(inputs_.element_id); |
| layer->SetMutableProperties(inputs_.mutable_properties); |
| // When a scroll offset animation is interrupted the new scroll position on |