| Index: third_party/WebKit/Source/core/paint/BoxClipper.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/BoxClipper.cpp b/third_party/WebKit/Source/core/paint/BoxClipper.cpp
|
| index 87d52245a69d070fe95773947dfb44ac4b85f427..9d0bd2da3186d02859f61855f2d7cecf87c31455 100644
|
| --- a/third_party/WebKit/Source/core/paint/BoxClipper.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/BoxClipper.cpp
|
| @@ -26,10 +26,7 @@ namespace blink {
|
| static bool boxNeedsClip(const LayoutBox& box) {
|
| if (box.hasLayer() && box.layer()->isSelfPaintingLayer())
|
| return false;
|
| - if (box.isSVGRoot() && toLayoutSVGRoot(box).shouldApplyViewportClip())
|
| - return true;
|
| - return box.hasOverflowClip() || box.styleRef().containsPaint() ||
|
| - box.hasControlClip();
|
| + return box.shouldClipOverflow();
|
| }
|
|
|
| DISABLE_CFI_PERF
|
| @@ -62,9 +59,7 @@ BoxClipper::BoxClipper(const LayoutBox& box,
|
| if (!boxNeedsClip(m_box))
|
| return;
|
|
|
| - LayoutRect clipRect = m_box.hasControlClip()
|
| - ? m_box.controlClipRect(accumulatedOffset)
|
| - : m_box.overflowClipRect(accumulatedOffset);
|
| + LayoutRect clipRect = m_box.overflowClipRect(accumulatedOffset);
|
| FloatRoundedRect clipRoundedRect(0, 0, 0, 0);
|
| bool hasBorderRadius = m_box.style()->hasBorderRadius();
|
| if (hasBorderRadius)
|
|
|