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

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

Issue 2636253002: Handle nested position:sticky elements (Closed)
Patch Set: Ignore position:sticky offsets when computing localToAncestorQuad offsets Created 3 years, 11 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 24e8029cd76195d5c3b2fcb13c43c455ff6dd9f9..0c1895308b7d232dba2edba2f3cdcd99d201caa0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2005,12 +2005,13 @@ void LayoutBox::mapAncestorToLocal(const LayoutBoxModelObject* ancestor,
LayoutBoxModelObject::mapAncestorToLocal(ancestor, transformState, mode);
}
-LayoutSize LayoutBox::offsetFromContainer(const LayoutObject* o) const {
+LayoutSize LayoutBox::offsetFromContainer(const LayoutObject* o,
+ bool ignoreSticky) const {
ASSERT(o == container());
LayoutSize offset;
if (isInFlowPositioned())
- offset += offsetForInFlowPosition();
+ offset += offsetForInFlowPosition(ignoreSticky);
offset += physicalLocationOffset();

Powered by Google App Engine
This is Rietveld 408576698