Index: content/common/gpu/ca_layer_tree_mac.mm |
diff --git a/content/common/gpu/ca_layer_tree_mac.mm b/content/common/gpu/ca_layer_tree_mac.mm |
index 8c7d93886a5876d72e9d7749e090e0908845d0a5..49d0218f9b9fa9ba6621ff772aa527c987176d31 100644 |
--- a/content/common/gpu/ca_layer_tree_mac.mm |
+++ b/content/common/gpu/ca_layer_tree_mac.mm |
@@ -303,7 +303,7 @@ void CALayerTree::ClipAndSortingLayer::CommitToCA( |
DCHECK(old_layer->ca_layer); |
std::swap(ca_layer, old_layer->ca_layer); |
update_is_clipped = old_layer->is_clipped != is_clipped; |
- update_clip_rect = old_layer->clip_rect != clip_rect; |
+ update_clip_rect = update_is_clipped || old_layer->clip_rect != clip_rect; |
ccameron
2016/02/17 22:53:33
Oops, tests discovered a bug.
|
} else { |
ca_layer.reset([[CALayer alloc] init]); |
[ca_layer setAnchorPoint:CGPointZero]; |