Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| index e6f84ffc8f017c8b309cf4d2372e5466b4420738..d724bd16080724d109982ef4ffead15d4cb46941 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -107,7 +107,7 @@ PaintLayerType LayoutBox::layerTypeRequired() const |
| || !style()->hasAutoZIndex() || style()->shouldCompositeForCurrentAnimations()) |
|
chrishtr
2015/12/09 01:41:46
!hasAutoZIndex should be enough, line 110 will be
leviw_travelin_and_unemployed
2015/12/09 21:09:24
Good point :)
|
| return NormalPaintLayer; |
| - if (hasOverflowClip()) |
| + if (hasOverflowClip() || style()->containsPaint()) |
| return OverflowClipPaintLayer; |
| return NoPaintLayer; |