void ScrollingTreeFrameScrollingNode::setScrollPosition(const FloatPoint& scrollPosition) { FloatPoint newScrollPosition = scrollPosition; newScrollPosition = newScrollPosition.shrunkTo(maximumScrollPosition()); newScrollPosition = newScrollPosition.expandedTo(minimumScrollPosition()); setScrollPositionWithoutContentEdgeConstraints(newScrollPosition); }
void ScrollingTreeScrollingNode::setScrollPosition(const FloatPoint& scrollPosition) { FloatPoint newScrollPosition = scrollPosition.constrainedBetween(minimumScrollPosition(), maximumScrollPosition()); setScrollPositionWithoutContentEdgeConstraints(newScrollPosition); }
void ScrollingTreeFrameScrollingNode::scrollByWithoutContentEdgeConstraints(const FloatSize& offset) { setScrollPositionWithoutContentEdgeConstraints(scrollPosition() + offset); }