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

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

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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index cef8ef1a279f3757243cf20cc8e294f15cd80a5c..772a9c4bbba3bd2bc5e91cb06fbb56f1aa8b7b78 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1249,7 +1249,8 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
// Return the offset from the container() layoutObject (excluding transforms
// and multicol).
- virtual LayoutSize offsetFromContainer(const LayoutObject*) const;
+ virtual LayoutSize offsetFromContainer(const LayoutObject*,
+ bool ignoreSticky = false) const;
// Return the offset from an object up the container() chain. Asserts that
// none of the intermediate objects have transforms.
LayoutSize offsetFromAncestorContainer(const LayoutObject*) const;

Powered by Google App Engine
This is Rietveld 408576698