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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h

Issue 2020103002: Fix sticky constraints and update sticky layer positions recursively after scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify sticky box rect calculation. Created 4 years, 6 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/page/scrolling/StickyPositionScrollingConstraints.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h b/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h
index e9fd95b4609d0999039fee0c855a431ecdea6b31..e1d5c4bf70f973b10614f9ae43618dc488c1074d 100644
--- a/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h
+++ b/third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h
@@ -9,6 +9,8 @@
namespace blink {
+class LayoutBoxModelObjectTest;
+
class StickyPositionScrollingConstraints final {
public:
enum AnchorEdgeFlags {
@@ -71,6 +73,11 @@ public:
bool operator!=(const StickyPositionScrollingConstraints& other) const { return !(*this == other); }
private:
+ friend class LayoutBoxModelObjectTest;
+
+ const FloatRect& scrollContainerRelativeContainingBlockRect() const { return m_scrollContainerRelativeContainingBlockRect; }
+ const FloatRect& scrollContainerRelativeStickyBoxRect() const { return m_scrollContainerRelativeStickyBoxRect; }
+
AnchorEdges m_anchorEdges;
float m_leftOffset;
float m_rightOffset;

Powered by Google App Engine
This is Rietveld 408576698