Changeset 98876 in webkit
- Timestamp:
- Oct 31, 2011, 1:31:26 PM (15 years ago)
- Location:
- branches/subpixellayout/Source
- Files:
-
- 6 edited
-
WebCore/WebCore.exp.in (modified) (1 diff)
-
WebKit/mac/Plugins/WebBaseNetscapePluginView.mm (modified) (2 diffs)
-
WebKit/mac/WebView/WebHTMLView.mm (modified) (1 diff)
-
WebKit2/UIProcess/API/mac/WKPrintingView.mm (modified) (1 diff)
-
WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp (modified) (2 diffs)
-
WebKit2/WebProcess/Plugins/PluginView.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/WebCore.exp.in
r98872 r98876 880 880 __ZN7WebCore7IntRect5uniteERKS0_ 881 881 __ZN7WebCore7IntRect9intersectERKS0_ 882 __ZN7WebCore7IntRectC1ERKNS_9FixedRectE 882 883 __ZN7WebCore7IntRectC1ERKNS_9FloatRectE 883 884 __ZN7WebCore7IntSizeC1ERK6CGSize -
branches/subpixellayout/Source/WebKit/mac/Plugins/WebBaseNetscapePluginView.mm
r98165 r98876 852 852 { 853 853 if (RenderBoxModelObject *renderer = toRenderBoxModelObject(_element->renderer())) { 854 IntRect contentRect( rect);854 IntRect contentRect(enclosingIntRect(rect)); 855 855 contentRect.move(renderer->borderLeft() + renderer->paddingLeft(), renderer->borderTop() + renderer->paddingTop()); 856 856 … … 937 937 938 938 #endif // ENABLE(NETSCAPE_PLUGIN_API) 939 -
branches/subpixellayout/Source/WebKit/mac/WebView/WebHTMLView.mm
r98165 r98876 293 293 294 294 NSRect invalidRectInWebFrameViewCoordinates = [enclosingWebFrameView convertRect:invalidRect fromView:self]; 295 IntRect invalidRectInFrameViewCoordinates( invalidRectInWebFrameViewCoordinates);295 IntRect invalidRectInFrameViewCoordinates(enclosingIntRect(invalidRectInWebFrameViewCoordinates)); 296 296 if (![enclosingWebFrameView isFlipped]) 297 297 invalidRectInFrameViewCoordinates.setY(frameView->frameRect().size().height() - invalidRectInFrameViewCoordinates.maxY()); -
branches/subpixellayout/Source/WebKit2/UIProcess/API/mac/WKPrintingView.mm
r98662 r98876 427 427 ASSERT(isMainThread()); 428 428 429 IntRect rect( nsRect);429 IntRect rect(enclosingIntRect(nsRect)); 430 430 rect.scale(1 / _totalScaleFactorForPrinting); 431 431 HashMap<WebCore::IntRect, Vector<uint8_t> >::iterator pagePreviewIterator = _pagePreviews.find(rect); -
branches/subpixellayout/Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp
r98872 r98876 224 224 if (CGRectIsEmpty(box)) 225 225 box = CGPDFPageGetBoxRect(pdfPage, kCGPDFMediaBox); 226 m_pageBoxes.append( IntRect(box));226 m_pageBoxes.append(enclosingIntRect(box)); 227 227 m_pdfDocumentSize.setWidth(max(m_pdfDocumentSize.width(), static_cast<int>(box.size.width))); 228 228 m_pdfDocumentSize.expand(0, box.size.height); … … 656 656 AppUnit verticalScrollbarWidth = (m_verticalScrollbar && !m_verticalScrollbar->isOverlayScrollbar()) ? m_verticalScrollbar->width() : AppUnit(); 657 657 658 IntPoint maximumOffset((m_pdfDocumentSize.width() - m_pluginSize.width() + verticalScrollbarWidth ,m_pdfDocumentSize.height() - m_pluginSize.height() + horizontalScrollbarHeight).ceil());658 IntPoint maximumOffset((m_pdfDocumentSize.width() - m_pluginSize.width() + verticalScrollbarWidth).ceil(), (m_pdfDocumentSize.height() - m_pluginSize.height() + horizontalScrollbarHeight).ceil()); 659 659 maximumOffset.clampNegativeToZero(); 660 660 return maximumOffset; -
branches/subpixellayout/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
r98872 r98876 725 725 726 726 // FIXME: Just passing a translation matrix isn't good enough. 727 IntPoint locationInWindowCoordinates = parent()->contentsToRootView( frameRect().location());727 IntPoint locationInWindowCoordinates = parent()->contentsToRootView(roundedIntPoint(frameRect().location())); 728 728 AffineTransform transform = AffineTransform::translation(locationInWindowCoordinates.x(), locationInWindowCoordinates.y()); 729 729 730 730 // FIXME: The clip rect isn't correct. 731 IntRect clipRect = boundsRect();732 m_plugin->geometryDidChange( size(), clipRect, transform);731 IntRect clipRect = enclosingIntRect(boundsRect()); 732 m_plugin->geometryDidChange(expandedIntSize(size()), clipRect, transform); 733 733 } 734 734
Note:
See TracChangeset
for help on using the changeset viewer.