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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2072473003: Change CSS containment should invalidate layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct LayoutObject::canContainAbsolutePositionObjects 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 4e50f807ae2c8834e59693536f0eea6791bfc644..2bb0089bbef25e81bb5f7f2cf72c94a9a6c4def6 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -468,6 +468,9 @@ public:
bool hasUniquePseudoStyle() const;
bool hasPseudoElementStyle() const;
+ bool canContainAbsolutePositionObjects() const { return position() != StaticPosition; }
+ bool canContainFixedPositionObjects() const { return hasTransformRelatedProperty() || containsPaint();}
+
// attribute getter methods
EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.effectiveDisplay); }
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698