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

Unified Diff: cc/layers/layer_impl.cc

Issue 1135833002: cc: Ensure pending tree needs prop updates when active tree scrolls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 years, 7 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 | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 29fc3a33d95a6550b0ee88106773e6cc7a8c4d05..0f92266856ede2ca1f32d04182120ca0fafbe86a 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -1221,6 +1221,12 @@ void LayerImpl::DidUpdateScrollOffset(bool is_from_root_delegate) {
layer_tree_impl()->DidUpdateScrollOffset(id());
NoteLayerPropertyChangedForSubtree();
ScrollbarParametersDidChange(false);
+ // Inform the pending twin that a property changed.
+ if (layer_tree_impl()->IsActiveTree()) {
+ LayerImpl* pending_twin = layer_tree_impl()->FindPendingTreeLayerById(id());
+ if (pending_twin)
+ pending_twin->NoteLayerPropertyChangedForSubtree();
+ }
}
void LayerImpl::SetDoubleSided(bool double_sided) {
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698