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

Unified Diff: cc/layers/scrollbar_layer_impl_base.cc

Issue 732423002: Update from chromium https://crrev.com/304586 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_impl_base.cc
diff --git a/cc/layers/scrollbar_layer_impl_base.cc b/cc/layers/scrollbar_layer_impl_base.cc
index 4248617f5bcc75eab4c20d632871f839b2202770..beac79f6cca24c68dc17253f1193a6918f5998a2 100644
--- a/cc/layers/scrollbar_layer_impl_base.cc
+++ b/cc/layers/scrollbar_layer_impl_base.cc
@@ -69,11 +69,7 @@ void RegisterScrollbarWithLayers(ScrollbarLayerImplBase* scrollbar,
for (LayerImpl* current_layer = scroll_layer;
current_layer && current_layer != container_layer->parent();
current_layer = current_layer->parent()) {
- // TODO(wjmaclean) We shouldn't need to exempt the scroll_layer from the
- // scrollable() test below. https://crbug.com/367858.
- if (current_layer->scrollable() || current_layer == container_layer ||
- current_layer == scroll_layer)
- (current_layer->*operation)(scrollbar);
+ (current_layer->*operation)(scrollbar);
}
}
} // namespace
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698