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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 868363004: Compositor hit-testing considers scrollable layers that scroll a drawn RSLL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use IsDawnRSLL instead of DrawsContent Created 5 years, 9 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 62e4cd36bed352c3ce953c43235fcfb8503c51f9..6b029e46060aa980516cc80ef946a54bff0e437d 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1448,15 +1448,16 @@ static void FindClosestMatchingLayer(
static bool ScrollsAnyDrawnRenderSurfaceLayerListMember(LayerImpl* layer) {
if (!layer->scrollable())
return false;
- if (layer->IsDrawnRenderSurfaceLayerListMember())
+ if (layer->draw_properties().layer_or_descendant_is_drawn)
return true;
+
if (!layer->scroll_children())
return false;
for (std::set<LayerImpl*>::const_iterator it =
Ian Vollick 2015/03/06 18:56:16 Iterating over the children caused the brittleness
majidvp 2015/03/06 19:43:03 The issue was due to fact that layer was only chec
layer->scroll_children()->begin();
it != layer->scroll_children()->end();
++it) {
- if ((*it)->IsDrawnRenderSurfaceLayerListMember())
+ if ((*it)->draw_properties().layer_or_descendant_is_drawn)
return true;
}
return false;
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698