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

Unified Diff: cc/layers/layer_impl.cc

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)
Patch Set: Address reviewer comments & fix ScrollbarVisibilityChangeCausesRedrawAndCommit Created 3 years, 8 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
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index bd7b9fee0a6cb7f3d08943423a4c62aa070b366a..db7d68722458138c03b439cbb1174f0a83ca7454 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -344,9 +344,9 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->layer_property_changed_ = true;
}
+ layer->SetElementId(element_id_);
layer->SetBounds(bounds_);
layer->SetScrollClipLayer(scroll_clip_layer_id_);
- layer->SetElementId(element_id_);
layer->SetMutableProperties(mutable_properties_);
// If the main thread commits multiple times before the impl thread actually

Powered by Google App Engine
This is Rietveld 408576698