• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/WebKit2-7600.1.25/UIProcess/API/Cocoa/

Lines Matching refs:contentOffset

787 static CGPoint contentOffsetBoundedInValidRange(UIScrollView *scrollView, CGPoint contentOffset)
794 contentOffset.x = std::min(maxHorizontalOffset, contentOffset.x);
795 contentOffset.x = std::max(-contentInsets.left, contentOffset.x);
798 contentOffset.y = std::min(maxVerticalOffset, contentOffset.y);
799 contentOffset.y = std::max(-contentInsets.top, contentOffset.y);
800 return contentOffset;
803 static void changeContentOffsetBoundedInValidRange(UIScrollView *scrollView, WebCore::FloatPoint contentOffset)
805 scrollView.contentOffset = contentOffsetBoundedInValidRange(scrollView, contentOffset);
898 CGPoint currentContentOffset = [_scrollView contentOffset];
999 static WebCore::FloatPoint constrainContentOffset(WebCore::FloatPoint contentOffset, WebCore::FloatSize contentSize, WebCore::FloatSize unobscuredContentSize)
1002 contentOffset = contentOffset.shrunkTo(WebCore::FloatPoint(maximumContentOffset.width(), maximumContentOffset.height()));
1003 contentOffset = contentOffset.expandedTo(WebCore::FloatPoint());
1004 return contentOffset;
1021 if (!CGPointEqualToPoint(contentOffsetInScrollViewCoordinates, [_scrollView contentOffset]))
1025 // The WebProcess would keep the invalid contentOffset as its scroll position.
1065 [_scrollView setContentOffset:([_scrollView contentOffset] + scrollViewOffsetDelta) animated:YES];
1301 *targetContentOffset = [scrollView contentOffset];
2212 CGPoint originalContentOffset = [_scrollView contentOffset];
2213 CGPoint contentOffset = originalContentOffset;
2214 contentOffset.x += (originalContentCenterInSelfCoordinates.x - futureUnobscuredRectCenterInSelfCoordinates.x);
2215 contentOffset.y += (originalContentCenterInSelfCoordinates.y - futureUnobscuredRectCenterInSelfCoordinates.y);
2220 contentOffset.x = std::min(contentOffset.x, maxHorizontalOffset);
2222 contentOffset.y = std::min(contentOffset.y, maxVerticalOffset);
2224 contentOffset.x = std::max(contentOffset.x, -_obscuredInsets.left);
2225 contentOffset.y = std::max(contentOffset.y, -_obscuredInsets.top);
2229 contentOffset.y = maxVerticalOffset;
2231 contentOffset.y = -_obscuredInsets.top;
2235 [_scrollView setContentOffset:contentOffset];
2266 // an invalid contentOffset. The real content offset is only set below.
2267 // Since there is no public API for setting both the zoomScale and the contentOffset, we set the zoomScale manually
2268 // on the zoom layer and then only change the contentOffset.
2274 CGPoint currentScrollOffset = [_scrollView contentOffset];