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 452d1633e847ccc7eaea35cea054db101f70c4d0..4638b7a0573504b10bc4fe44a96fe9797ce3c759 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -701,7 +701,7 @@ public: |
bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoClip(); } |
bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } |
- bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } |
+ bool hasOverflowClipPaintContainmentOrClip() const { return hasClip() || hasOverflowClip() || style()->containsPaint(); } |
chrishtr
2015/12/09 23:34:58
hasClipRelatedProperty()
|
bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRelatedProperty(); } |
bool hasMask() const { return style() && style()->hasMask(); } |
@@ -925,7 +925,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 |