Changeset 150135 in webkit
- Timestamp:
- May 15, 2013, 12:12:21 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150129 r150135 1 2013-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 1 12 2013-05-15 Darin Adler <darin@apple.com> 2 13 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r150047 r150135 2677 2677 return false; 2678 2678 2679 float effectiveScale = pageScaleFactor * deviceScaleFactor();2680 2681 2679 // 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; 2683 2681 } 2684 2682 … … 3011 3009 FloatPoint& position, FloatSize& size, FloatPoint3D& anchorPoint, FloatSize& alignmentOffset) const 3012 3010 { 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) { 3015 3012 position = m_position; 3016 3013 size = m_size; … … 3023 3020 FloatRect scaledBounds = baseRelativeBounds; 3024 3021 // Scale by the page scale factor to compute the screen-relative bounds. 3025 scaledBounds.scale( effectiveScale);3022 scaledBounds.scale(pageScaleFactor); 3026 3023 // Round to integer boundaries. 3027 3024 FloatRect alignedBounds = enclosingIntRect(scaledBounds); 3028 3025 3029 3026 // Convert back to layer coordinates. 3030 alignedBounds.scale(1 / effectiveScale);3027 alignedBounds.scale(1 / pageScaleFactor); 3031 3028 3032 3029 // 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.