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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.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/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 4b1b406c97e6e0a0808e6fafd877eb10c29d79d0..fff97819a07e98fe3c1f335b20a03068568fda1f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1228,13 +1228,13 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(
visualRectFlags);
}
-LayoutSize LayoutInline::offsetFromContainer(
- const LayoutObject* container) const {
+LayoutSize LayoutInline::offsetFromContainer(const LayoutObject* container,
+ bool ignoreSticky) const {
ASSERT(container == this->container());
LayoutSize offset;
if (isInFlowPositioned())
- offset += offsetForInFlowPosition();
+ offset += offsetForInFlowPosition(ignoreSticky);
if (container->hasOverflowClip())
offset -= toLayoutBox(container)->scrolledContentOffset();

Powered by Google App Engine
This is Rietveld 408576698