| Index: Source/core/page/scrolling/ScrollingConstraints.cpp
|
| diff --git a/Source/core/page/scrolling/ScrollingConstraints.cpp b/Source/core/page/scrolling/ScrollingConstraints.cpp
|
| index 30c8bb5bb6e4a8272422d6477de7c0bf937f2a40..120348c4a992a7368690bc01ed5e7204fe74d75b 100644
|
| --- a/Source/core/page/scrolling/ScrollingConstraints.cpp
|
| +++ b/Source/core/page/scrolling/ScrollingConstraints.cpp
|
| @@ -48,7 +48,7 @@ FloatPoint FixedPositionViewportConstraints::layerPositionForViewportRect(const
|
| FloatSize StickyPositionViewportConstraints::computeStickyOffset(const FloatRect& viewportRect) const
|
| {
|
| FloatRect boxRect = m_absoluteStickyBoxRect;
|
| -
|
| +
|
| if (hasAnchorEdge(AnchorEdgeRight)) {
|
| float rightLimit = viewportRect.maxX() - m_rightOffset;
|
| float rightDelta = std::min<float>(0, rightLimit - m_absoluteStickyBoxRect.maxX());
|
| @@ -68,7 +68,7 @@ FloatSize StickyPositionViewportConstraints::computeStickyOffset(const FloatRect
|
|
|
| boxRect.move(leftDelta, 0);
|
| }
|
| -
|
| +
|
| if (hasAnchorEdge(AnchorEdgeBottom)) {
|
| float bottomLimit = viewportRect.maxY() - m_bottomOffset;
|
| float bottomDelta = std::min<float>(0, bottomLimit - m_absoluteStickyBoxRect.maxY());
|
|
|