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

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

Issue 2328633003: A container of out-of-flow positioned descendants should be an offsetParent. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 4ca86c11157b7db991838ea960af4c6752c9340a..a68d26215d27f358f65655a6633e85c3226a194e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -2956,7 +2956,7 @@ Element* LayoutObject::offsetParent(const Element* base) const
continue;
}
- if (ancestor->isPositioned())
+ if (ancestor->canContainAbsolutePositionObjects())
break;
if (isHTMLBodyElement(*node))
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698