Index: third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h |
diff --git a/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h b/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h |
index 296496d76f24a22d2545fa38c5d5c6555e31f2ef..159ce0a0157e94f05b5636ab5966b2f8e6f47354 100644 |
--- a/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h |
+++ b/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h |
@@ -26,8 +26,8 @@ |
#ifndef WebLayerStickyPositionConstraint_h |
#define WebLayerStickyPositionConstraint_h |
-#include "public/platform/WebPoint.h" |
-#include "public/platform/WebRect.h" |
+#include "public/platform/WebFloatPoint.h" |
+#include "public/platform/WebFloatRect.h" |
namespace blink { |
@@ -52,15 +52,20 @@ struct WebLayerStickyPositionConstraint { |
// This is the layout position of the sticky element before it has been |
// shifted relative to the enclosing composited layer. |
- WebPoint parentRelativeStickyBoxOffset; |
+ WebFloatPoint parentRelativeStickyBoxOffset; |
// The layout rectangle of the sticky element before it has been shifted |
// to stick. |
- WebRect scrollContainerRelativeStickyBoxRect; |
+ WebFloatRect scrollContainerRelativeStickyBoxRect; |
// The layout rectangle of the containing block edges which this sticky |
// element should not be shifted beyond. |
- WebRect scrollContainerRelativeContainingBlockRect; |
+ WebFloatRect scrollContainerRelativeContainingBlockRect; |
+ |
+ // The nearest ancestor sticky layers that affect the sticky box constraint |
+ // rect and the containing block constraint rect respectively. |
+ int nearestLayerShiftingStickyBox; |
+ int nearestLayerShiftingContainingBlock; |
WebLayerStickyPositionConstraint() |
: isSticky(false), |
@@ -71,7 +76,9 @@ struct WebLayerStickyPositionConstraint { |
leftOffset(0.f), |
rightOffset(0.f), |
topOffset(0.f), |
- bottomOffset(0.f) {} |
+ bottomOffset(0.f), |
+ nearestLayerShiftingStickyBox(-1), |
+ nearestLayerShiftingContainingBlock(-1) {} |
}; |
} // namespace blink |