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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 26112002: cc: Fix hit-testing in zero-opacity layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/trees/layer_tree_host_unittest_picture.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | 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 4604043663920750438b5de260b0d8a0249d36b2..512f5c4718b735e75003c17ede2d017b2aa5bde2 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -342,8 +342,8 @@ void LayerTreeImpl::UpdateDrawProperties() {
UpdateRootScrollLayerSizeDelta();
if (IsActiveTree() &&
- RootContainerLayer()
- && !RootContainerLayer()->masks_to_bounds()) {
+ RootContainerLayer() &&
+ !RootContainerLayer()->masks_to_bounds()) {
UpdateSolidColorScrollbars();
}
@@ -405,6 +405,8 @@ void LayerTreeImpl::UpdateDrawProperties() {
if (!it.represents_itself())
continue;
LayerImpl* layer = *it;
+ if (layer->draw_properties().skip_drawing)
+ continue;
layer->UpdateTilePriorities();
if (layer->mask_layer())
« no previous file with comments | « cc/trees/layer_tree_host_unittest_picture.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698