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 d6c9602a1ba6b6bf14d1b285080bcd342b13704e..dc52e82439b663e2e8383bd3170fa0226784d857 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -1150,7 +1150,7 @@ IntSize LayoutBox::scrolledContentOffset() const { |
| LayoutRect LayoutBox::clippingRect() const { |
| LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect()); |
| - if (hasOverflowClip() || style()->containsPaint()) |
| + if (shouldClipOverflow()) |
| result = overflowClipRect(LayoutPoint()); |
| if (hasClip()) |
| @@ -2350,7 +2350,6 @@ bool LayoutBox::mapToVisualRectInAncestorSpaceInternal( |
| TransformState& transformState, |
| VisualRectFlags visualRectFlags) const { |
| inflateVisualRectForFilter(transformState); |
| - |
|
pdr.
2017/03/28 03:30:20
Nit: remove this
|
| if (ancestor == this) |
| return true; |