Index: cc/trees/property_tree_builder.cc |
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc |
index 57950302e62404410d4abc2cfac110b052fbb9cc..a94081efae5fc01d4aa47d04661c63df93997e6d 100644 |
--- a/cc/trees/property_tree_builder.cc |
+++ b/cc/trees/property_tree_builder.cc |
@@ -109,7 +109,7 @@ void AddClipNodeIfNeeded(const DataForRecursion<LayerType>& data_from_ancestor, |
if (layer->has_render_surface()) { |
if (ancestor_clips_subtree && layer->num_unclipped_descendants() > 0) |
data_for_children->ancestor_clips_subtree = true; |
- else if (!ancestor_clips_subtree && !layer->num_unclipped_descendants()) |
+ else if (!ancestor_clips_subtree) |
has_unclipped_surface = true; |
} else { |
data_for_children->ancestor_clips_subtree = ancestor_clips_subtree; |