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

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: 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 | no next file » | no next file with comments »
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 c47e50cfa46c6e9a75a69743dc19619456566201..a8d698422c399ae012ccc0a7c24c97e18a504951 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -1221,6 +1221,13 @@ void LayerImpl::DidUpdateScrollOffset(bool is_from_root_delegate) {
layer_tree_impl()->DidUpdateScrollOffset(id());
NoteLayerPropertyChangedForSubtree();
ScrollbarParametersDidChange(false);
+ if (layer_tree_impl()->IsActiveTree()) {
+ LayerImpl* pending_twin = layer_tree_impl()->FindPendingTreeLayerById(id());
+ if (pending_twin) {
+ pending_twin->NoteLayerPropertyChangedForSubtree();
+ pending_twin->ScrollbarParametersDidChange(false);
aelias_OOO_until_Jul13 2015/05/08 21:44:00 I don't think this line is needed, pending tree sc
vmpstr 2015/05/11 18:36:15 Removed.
+ }
+ }
}
void LayerImpl::SetDoubleSided(bool double_sided) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698