Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1490063002: Implement Paint Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename layer method, add inline tests, address comments, bribe chrishtr, lather, rinse, repeat. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(); }
ojan 2015/12/10 02:21:40 Might be time to find a better name for this.
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

Powered by Google App Engine
This is Rietveld 408576698