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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

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/layout/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 5390b7360ae1ca2e7fe1d29e0e78682f75fafc1b..43b025cd847a9bdd2c9d416668de6358f3854c7e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -1024,7 +1024,7 @@ const LayoutObject* LayoutBoxModelObject::pushMappingToContainer(const LayoutBox
bool isInline = isLayoutInline();
bool isFixedPos = !isInline && style()->position() == FixedPosition;
- bool hasTransform = !isInline && hasLayer() && layer()->transform();
+ bool containsFixedPosition = canContainFixedPositionObjects();
LayoutSize adjustmentForSkippedAncestor;
if (ancestorSkipped) {
@@ -1050,8 +1050,8 @@ const LayoutObject* LayoutBoxModelObject::pushMappingToContainer(const LayoutBox
flags |= IsNonUniform;
if (isFixedPos)
flags |= IsFixedPosition;
- if (hasTransform)
- flags |= HasTransform;
+ if (containsFixedPosition)
+ flags |= ContainsFixedPosition;
if (shouldUseTransformFromContainer(container)) {
TransformationMatrix t;
getTransformFromContainer(container, containerOffset, t);

Powered by Google App Engine
This is Rietveld 408576698