| 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 ae0dcc65cc9ceae71c10d3c3b75440b14e1082e9..e6470a223eafabe2c7fe675ddf73dcd155a6be19 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()));
|
| }
|
| ASSERT_NOT_REACHED();
|
| return nullptr;
|
|
|