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

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

Issue 2194913002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: 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 d21deb7083ce948b52ed4c1c716110006c4f8910..32e21d222eea6c9c5cdf880f43cccccd1bc2a6dd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -1003,7 +1003,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) {
@@ -1029,8 +1029,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);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698