| Index: third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| index d3fdb1b509a85c453182020ce65ffacb03263046..5a1e96b6822269dcafb1b71da2c4d49a1686b7e4 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| @@ -48,10 +48,12 @@ static const PaintLayer* findParentLayerOnClippingContainerChain(
|
| if (current->hasLayer())
|
| return static_cast<const LayoutBoxModelObject*>(current)->layer();
|
| // Having clip or overflow clip forces the LayoutObject to become a layer,
|
| - // except for contains: paint, which may apply to SVG.
|
| + // except for contains: paint, which may apply to SVG, and
|
| + // control clip, which may apply to LayoutBox subtypes.
|
| // SVG (other than LayoutSVGRoot) cannot have PaintLayers.
|
| DCHECK(!current->hasClipRelatedProperty() ||
|
| - current->styleRef().containsPaint());
|
| + current->styleRef().containsPaint() ||
|
| + (current->isBox() && toLayoutBox(current)->hasControlClip()));
|
| }
|
| NOTREACHED();
|
| return nullptr;
|
|
|