Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
index ce858c5affa2e68ca641f9a12cb3048ed3a48f89..e4fc89084ee569a2b5605b510bded4d9c6c05249 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
@@ -62,6 +62,7 @@ enum ContentChangeType { |
}; |
class InlineFlowBox; |
+class StickyPositionViewportConstraints; |
// This class is the base class for all CSS objects. |
// |
@@ -140,6 +141,12 @@ public: |
LayoutSize relativePositionOffset() const; |
LayoutSize relativePositionLogicalOffset() const { return style()->isHorizontalWritingMode() ? relativePositionOffset() : relativePositionOffset().transposedSize(); } |
+ // Populates StickyPositionConstraints, setting the sticky box rect, containing block rect and updating |
+ // the constraint offsets according to the available space. |
+ void computeStickyPositionConstraints(StickyPositionViewportConstraints&, const LayoutRect& constrainingRect) const; |
+ LayoutRect computeStickyConstrainingRect() const; |
+ LayoutSize stickyPositionOffset() const; |
+ |
LayoutSize offsetForInFlowPosition() const; |
// IE extensions. Used to calculate offsetWidth/Height. Overridden by inlines (LayoutFlow) |