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

Lines Matching +refs:frame +refs:width

212 - (instancetype)initWithFrame:(CGRect)frame
214 return [self initWithFrame:frame configuration:adoptNS([[WKWebViewConfiguration alloc] init]).get()];
239 - (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration
241 if (!(self = [super initWithFrame:frame]))
569 - (void)setFrame:(CGRect)frame
571 CGRect oldFrame = self.frame;
572 [super setFrame:frame];
574 if (!CGSizeEqualToSize(oldFrame.size, frame.size))
606 return CGSizeMake(floorToDevicePixel(contentSize.width, deviceScaleFactor), floorToDevicePixel(contentSize.height, deviceScaleFactor));
642 [_scrollView setContentSize:roundScrollViewContentSize(*_page, [_contentView frame].size)];
793 CGFloat maxHorizontalOffset = contentSize.width + contentInsets.right - scrollViewSize.width;
832 CGSize newContentSize = roundScrollViewContentSize(*_page, [_contentView frame].size);
877 WebCore::FloatSize unobscuredContentSizeAtNewScale(unobscuredRect.size.width / _scaleToRestore, unobscuredRect.size.height / _scaleToRestore);
878 WebCore::FloatPoint topLeftInDocumentCoordinate(_unobscuredCenterToRestore.x() - unobscuredContentSizeAtNewScale.width() / 2, _unobscuredCenterToRestore.y() - unobscuredContentSizeAtNewScale.height() / 2);
940 snapshotSize.width *= deviceScale;
952 return WebKit::ViewSnapshot::create(slotID, imageSize, imageSize.width() * imageSize.height() * 4);
986 if (targetRect.width() > unobscuredRectSizeAfterZoom.width())
987 unobscuredRectLocationAfterZoom.setX(origin.x() - unobscuredRectSizeAfterZoom.width() / 2);
1002 contentOffset = contentOffset.shrunkTo(WebCore::FloatPoint(maximumContentOffset.width(), maximumContentOffset.height()));
1040 if (targetRect.width() <= unobscuredContentRect.width())
1041 newUnobscuredContentOffset.setX(targetRect.x() - (unobscuredContentRect.width() - targetRect.width()) / 2);
1043 newUnobscuredContentOffset.setX(origin.x() - unobscuredContentRect.width() / 2);
1051 if (targetRect.width() > unobscuredContentRect.width())
1052 newUnobscuredContentOffset.setX(origin.x() - unobscuredContentRect.width() / 2);
1082 // Zoom around the element's bounding frame. We use a "standard" size to determine the proper frame.
1084 CGFloat documentWidth = [_contentView bounds].size.width;
1091 focusedElementRectInNewScale.moveBy([_contentView frame].origin);
1136 // difference between the size of the DOM node and the size of the visible frame.
1137 CGFloat horizontalSpaceInWebViewCoordinates = std::max((visibleSize.width - focusedElementRectInNewScale.width()) / 2.0, 0.0);
1149 selectionRectInNewScale.moveBy([_contentView frame].origin);
1150 minimumAllowableHorizontalOffsetInWebViewCoordinates = CGRectGetMaxX(selectionRectInNewScale) + CaretOffsetFromWindowEdge - visibleSize.width;
1156 documentBoundsInNewScale.moveBy([_contentView frame].origin);
1164 CGFloat maximumAllowableHorizontalOffset = CGRectGetMaxX(documentBoundsInNewScale) - visibleSize.width;
1180 WebCore::FloatPoint newCenter = CGPointMake(topLeft.x + unobscuredScrollViewRectInWebViewCoordinates.size.width / 2.0, topLeft.y + unobscuredScrollViewRectInWebViewCoordinates.size.height / 2.0);
1200 double horizontalScale = unobscuredContentSize.width() * currentScale / targetRect.width();
2117 ASSERT(size.width <= self.bounds.size.width && size.height <= self.bounds.size.height);
2196 [_scrollView setMinimumZoomScale:std::min(newMinimumLayoutSize.width() / contentSizeInContentViewCoordinates.width, [_scrollView minimumZoomScale])];
2197 [_scrollView setMaximumZoomScale:std::max(newMinimumLayoutSize.width() / contentSizeInContentViewCoordinates.width, [_scrollView maximumZoomScale])];
2199 // Compute the new scale to keep the current content width in the scrollview.
2200 CGFloat oldWebViewWidthInContentViewCoordinates = oldUnobscuredContentRect.width();
2201 CGFloat visibleContentViewWidthInContentCoordinates = std::min(contentSizeInContentViewCoordinates.width, oldWebViewWidthInContentViewCoordinates);
2202 CGFloat targetScale = newMinimumLayoutSize.width() / visibleContentViewWidthInContentCoordinates;
2210 CGPoint futureUnobscuredRectCenterInSelfCoordinates = CGPointMake(futureUnobscuredRectInSelfCoordinates.origin.x + futureUnobscuredRectInSelfCoordinates.size.width / 2, futureUnobscuredRectInSelfCoordinates.origin.y + futureUnobscuredRectInSelfCoordinates.size.height / 2);
2218 CGSize futureContentSizeInSelfCoordinates = CGSizeMake(contentSizeInContentViewCoordinates.width * targetScale, contentSizeInContentViewCoordinates.height * targetScale);
2219 CGFloat maxHorizontalOffset = futureContentSizeInSelfCoordinates.width - newBounds.size.width + _obscuredInsets.right;
2278 [_scrollView setContentSize:roundScrollViewContentSize(*_page, [_contentView frame].size)];
2307 CGFloat imageHeight = imageWidth / snapshotRectInContentCoordinates.size.width * snapshotRectInContentCoordinates.size.height;
2494 - (NSInteger)_computePageCountAndStartDrawingToPDFForFrame:(_WKFrameHandle *)frame printInfo:(const WebKit::PrintInfo&)printInfo firstPage:(uint32_t)firstPage computedTotalScaleFactor:(double&)totalScaleFactor
2501 uint64_t frameID = frame ? frame._frameID : _page->mainFrame()->frameID();