Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| index e0ce2763815212db5fd5cbbc3ee6b5bf4cf95dff..f576efd4eb5a916a73040480333fae6eb73f0bac 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
| @@ -424,6 +424,15 @@ LayoutObject* LayoutObject::nextInPreOrder() const { |
| return nextInPreOrderAfterChildren(); |
| } |
| +bool LayoutObject::hasClipRelatedProperty() const { |
|
pdr.
2017/03/23 22:27:00
Please remove the hasControlClip call in LayoutBox
chrishtr
2017/03/23 22:32:10
Done.
|
| + if (hasClip() || hasOverflowClip() || hasClipPath() || |
| + style()->containsPaint()) |
| + return true; |
| + if (isBox() && toLayoutBox(this)->hasControlClip()) |
| + return true; |
| + return false; |
| +} |
| + |
| LayoutObject* LayoutObject::nextInPreOrderAfterChildren() const { |
| LayoutObject* o = nextSibling(); |
| if (!o) { |