| Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| index 53ebcc64224eea42f9f30b9f3b5b941acca85d57..a49a6966701efaff8992c81360419d898047ea02 100644
|
| --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| @@ -147,7 +147,18 @@ void PrePaintTreeWalk::InvalidatePaintLayerOptimizationsIfNeeded(
|
| if (!object.HasLayer())
|
| return;
|
|
|
| + // This method checks whether any changes to descendant-affecting clips
|
| + // apply to any PaintLayer that supports subsequence caching. The
|
| + // only PaintLayers that can have such an effect by themselves (i.e.
|
| + // without any ancestor changes) are PaintLayers that have clip-related
|
| + // properties and descendants (including self) that support subsequence
|
| + // caching.
|
| PaintLayer& paint_layer = *ToLayoutBoxModelObject(object).Layer();
|
| + if (!paint_layer.SupportsSubsequenceCaching() &&
|
| + (!paint_layer.HasDescendantThatSupportsSubsequenceCaching() ||
|
| + !paint_layer.GetLayoutObject().HasClipRelatedProperty()))
|
| + return;
|
| +
|
| if (object.StyleRef().HasTransform() ||
|
| &object ==
|
| context.paint_invalidator_context.paint_invalidation_container) {
|
|
|