⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98876 in webkit


Ignore:
Timestamp:
Oct 31, 2011, 1:31:26 PM (15 years ago)
Author:
eae@chromium.org
Message:

Change WebKit/WebKit2 to use explicit conversion between FixedRect/Point/Size and the int equivalents. Follow up to change 98869.

Location:
branches/subpixellayout/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/WebCore.exp.in

    r98872 r98876  
    880880__ZN7WebCore7IntRect5uniteERKS0_
    881881__ZN7WebCore7IntRect9intersectERKS0_
     882__ZN7WebCore7IntRectC1ERKNS_9FixedRectE
    882883__ZN7WebCore7IntRectC1ERKNS_9FloatRectE
    883884__ZN7WebCore7IntSizeC1ERK6CGSize
  • branches/subpixellayout/Source/WebKit/mac/Plugins/WebBaseNetscapePluginView.mm

    r98165 r98876  
    852852{
    853853    if (RenderBoxModelObject *renderer = toRenderBoxModelObject(_element->renderer())) {
    854         IntRect contentRect(rect);
     854        IntRect contentRect(enclosingIntRect(rect));
    855855        contentRect.move(renderer->borderLeft() + renderer->paddingLeft(), renderer->borderTop() + renderer->paddingTop());
    856856       
     
    937937
    938938#endif //  ENABLE(NETSCAPE_PLUGIN_API)
    939 
  • branches/subpixellayout/Source/WebKit/mac/WebView/WebHTMLView.mm

    r98165 r98876  
    293293
    294294    NSRect invalidRectInWebFrameViewCoordinates = [enclosingWebFrameView convertRect:invalidRect fromView:self];
    295     IntRect invalidRectInFrameViewCoordinates(invalidRectInWebFrameViewCoordinates);
     295    IntRect invalidRectInFrameViewCoordinates(enclosingIntRect(invalidRectInWebFrameViewCoordinates));
    296296    if (![enclosingWebFrameView isFlipped])
    297297        invalidRectInFrameViewCoordinates.setY(frameView->frameRect().size().height() - invalidRectInFrameViewCoordinates.maxY());
  • branches/subpixellayout/Source/WebKit2/UIProcess/API/mac/WKPrintingView.mm

    r98662 r98876  
    427427    ASSERT(isMainThread());
    428428
    429     IntRect rect(nsRect);
     429    IntRect rect(enclosingIntRect(nsRect));
    430430    rect.scale(1 / _totalScaleFactorForPrinting);
    431431    HashMap<WebCore::IntRect, Vector<uint8_t> >::iterator pagePreviewIterator = _pagePreviews.find(rect);
  • branches/subpixellayout/Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp

    r98872 r98876  
    224224        if (CGRectIsEmpty(box))
    225225            box = CGPDFPageGetBoxRect(pdfPage, kCGPDFMediaBox);
    226         m_pageBoxes.append(IntRect(box));
     226        m_pageBoxes.append(enclosingIntRect(box));
    227227        m_pdfDocumentSize.setWidth(max(m_pdfDocumentSize.width(), static_cast<int>(box.size.width)));
    228228        m_pdfDocumentSize.expand(0, box.size.height);
     
    656656    AppUnit verticalScrollbarWidth = (m_verticalScrollbar && !m_verticalScrollbar->isOverlayScrollbar()) ? m_verticalScrollbar->width() : AppUnit();
    657657
    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());
    659659    maximumOffset.clampNegativeToZero();
    660660    return maximumOffset;
  • branches/subpixellayout/Source/WebKit2/WebProcess/Plugins/PluginView.cpp

    r98872 r98876  
    725725
    726726    // 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()));
    728728    AffineTransform transform = AffineTransform::translation(locationInWindowCoordinates.x(), locationInWindowCoordinates.y());
    729729
    730730    // 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);
    733733}
    734734
Note: See TracChangeset for help on using the changeset viewer.