Index: cc/trees/property_tree_builder.cc |
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc |
index 28ad43f309111ac26e9eb433bc3e5acaf11f6500..109a3419fbc2c008ff62d6f615d2331e46114619 100644 |
--- a/cc/trees/property_tree_builder.cc |
+++ b/cc/trees/property_tree_builder.cc |
@@ -145,6 +145,12 @@ void AddClipNodeIfNeeded(const DataForRecursion<LayerType>& data_from_ancestor, |
layer->SetClipTreeIndex( |
has_unclipped_surface ? 0 : data_for_children->clip_tree_parent); |
+ // TODO(jaydasika): This value depends on whether a layer has a render |
weiliangc
2015/07/07 15:54:02
Thanks for this. :) Could you also add crbug.com/5
jaydasika
2015/07/07 18:35:28
Done.
|
+ // surface or not. When building property trees becomes independant of |
+ // render surfaces, this should move. |
+ layer->draw_properties().is_clipped_from_property_trees = |
+ data_for_children->ancestor_clips_subtree; |
+ |
// TODO(awoloszyn): Right now when we hit a node with a replica, we reset the |
// clip for all children since we may need to draw. We need to figure out a |
// better way, since we will need both the clipped and unclipped versions. |