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

Unified Diff: cc/layer_tree_impl.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor for cleaner state/scrollbar split. Created 7 years, 11 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/layer_tree_impl.cc
diff --git a/cc/layer_tree_impl.cc b/cc/layer_tree_impl.cc
index 38fb937ccc189ff9802cd1e27d62ccdd85392826..1e2c591a20f09e8a699a9e90ecfa750902ed6d53 100644
--- a/cc/layer_tree_impl.cc
+++ b/cc/layer_tree_impl.cc
@@ -116,9 +116,9 @@ void LayerTreeImpl::UpdateDrawProperties() {
if (!RootLayer())
return;
- if (root_scroll_layer()) {
- root_scroll_layer()->setImplTransform(
- layer_tree_host_impl_->implTransform());
+ for (size_t i = 0; i < RootLayer()->children().size(); ++i) {
+ LayerImpl* layerImpl = RootLayer()->children()[i];
+ layerImpl->setImplTransform(layer_tree_host_impl_->implTransform());
Ian Vollick 2013/01/15 20:33:48 Please add a comment here that the implTransform i
}
{

Powered by Google App Engine
This is Rietveld 408576698