Index: third_party/WebKit/Source/core/layout/LayoutObject.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h |
index 928bf82e6b4c5c8596e53c18c2f8f03b5eda3986..1609759c871062d4ffab9f06ac05c770628fd944 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -698,7 +698,7 @@ public: |
bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoClip(); } |
bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } |
- bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } |
+ bool hasClipRelatedProperty() const { return hasClip() || hasOverflowClip() || style()->containsPaint(); } |
bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRelatedProperty(); } |
bool hasMask() const { return style() && style()->hasMask(); } |
@@ -930,7 +930,7 @@ public: |
bool canContainFixedPositionObjects() const |
{ |
- return isLayoutView() || (hasTransformRelatedProperty() && isLayoutBlock()) || isSVGForeignObject(); |
+ return isLayoutView() || (hasTransformRelatedProperty() && isLayoutBlock()) || isSVGForeignObject() || style()->containsPaint(); |
} |
// Convert the given local point to absolute coordinates |