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

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

Issue 2173963002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trailing whitespace Created 4 years, 5 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 aec7897bd7a05b7d2ddeb79e0ff2b82a5640f26b..bbdc1f28a7cd3db9079663cd4ddbb7fed1c0f5e9 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -482,6 +482,8 @@ public:
bool hasUniquePseudoStyle() const;
bool hasPseudoElementStyle() const;
+ // Note: canContainAbsolutePositionObjects should return true if canContainFixedPositionObjects.
+ // We currently never use this value directly, always OR'ing it with canContainFixedPositionObjects.
bool canContainAbsolutePositionObjects() const { return position() != StaticPosition; }
bool canContainFixedPositionObjects() const { return hasTransformRelatedProperty() || containsPaint();}

Powered by Google App Engine
This is Rietveld 408576698