Changeset 150135 in webkit


Ignore:
Timestamp:
May 15, 2013 12:12:21 PM (11 years ago)
Author:
Simon Fraser
Message:

Revert http://trac.webkit.org/changeset/150047

It introduced unwanted behavioral differences between
Retina and non-Retina Mac hardware.

  • platform/graphics/ca/GraphicsLayerCA.cpp:

(WebCore::GraphicsLayerCA::requiresTiledLayer):
(WebCore::GraphicsLayerCA::computePixelAlignment):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150129 r150135  
     12013-05-14  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Revert http://trac.webkit.org/changeset/150047
     4       
     5        It introduced unwanted behavioral differences between
     6        Retina and non-Retina Mac hardware.
     7
     8        * platform/graphics/ca/GraphicsLayerCA.cpp:
     9        (WebCore::GraphicsLayerCA::requiresTiledLayer):
     10        (WebCore::GraphicsLayerCA::computePixelAlignment):
     11
    1122013-05-15  Darin Adler  <darin@apple.com>
    213
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r150047 r150135  
    26772677        return false;
    26782678
    2679     float effectiveScale = pageScaleFactor * deviceScaleFactor();
    2680 
    26812679    // FIXME: catch zero-size height or width here (or earlier)?
    2682     return m_size.width() * effectiveScale > cMaxPixelDimension || m_size.height() * effectiveScale > cMaxPixelDimension;
     2680    return m_size.width() * pageScaleFactor > cMaxPixelDimension || m_size.height() * pageScaleFactor > cMaxPixelDimension;
    26832681}
    26842682
     
    30113009    FloatPoint& position, FloatSize& size, FloatPoint3D& anchorPoint, FloatSize& alignmentOffset) const
    30123010{
    3013     float effectiveScale = pageScaleFactor * deviceScaleFactor();
    3014     if (!m_maintainsPixelAlignment || isIntegral(effectiveScale) || !m_drawsContent || m_masksToBounds) {
     3011    if (!m_maintainsPixelAlignment || isIntegral(pageScaleFactor) || !m_drawsContent || m_masksToBounds) {
    30153012        position = m_position;
    30163013        size = m_size;
     
    30233020    FloatRect scaledBounds = baseRelativeBounds;
    30243021    // Scale by the page scale factor to compute the screen-relative bounds.
    3025     scaledBounds.scale(effectiveScale);
     3022    scaledBounds.scale(pageScaleFactor);
    30263023    // Round to integer boundaries.
    30273024    FloatRect alignedBounds = enclosingIntRect(scaledBounds);
    30283025   
    30293026    // Convert back to layer coordinates.
    3030     alignedBounds.scale(1 / effectiveScale);
     3027    alignedBounds.scale(1 / pageScaleFactor);
    30313028   
    30323029    // Epsilon is necessary to ensure that backing store size computation in CA, which involves integer truncation,
Note: See TracChangeset for help on using the changeset viewer.