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

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

Issue 2072473003: Change CSS containment should invalidate layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 f417cda7e924dfa9a6c8d8b82ffda4a83e200ad5..28a735b022477aa7a5e280f55323bb5565d0ae2b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -964,11 +964,13 @@ public:
bool canContainAbsolutePositionObjects() const
{
+ // Should keep in sync with LayoutBlock::styleWillChange().
return isPositioned() || canContainFixedPositionObjects();
}
bool canContainFixedPositionObjects() const
{
+ // Should keep in sync with LayoutBlock::styleWillChange().
return isLayoutView() || ((hasTransformRelatedProperty() || style()->containsPaint()) && isLayoutBlock()) || isSVGForeignObject();
}

Powered by Google App Engine
This is Rietveld 408576698