Changeset 112573 in webkit


Ignore:
Timestamp:
Mar 29, 2012 1:57:37 PM (12 years ago)
Author:
andersca@apple.com
Message:

Images that reload via media queries don't paint when device scale factor changes
https://bugs.webkit.org/show_bug.cgi?id=82648
<rdar://problem/11143637>

Reviewed by Beth Dakin.

Commit scale factor changes before dirty rect changes, since setting the scale factor
can lead to more rects being dirtied when using the tile cache.

  • platform/graphics/ca/GraphicsLayerCA.cpp:

(WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112572 r112573  
     12012-03-29  Anders Carlsson  <andersca@apple.com>
     2
     3        Images that reload via media queries don't paint when device scale factor changes
     4        https://bugs.webkit.org/show_bug.cgi?id=82648
     5        <rdar://problem/11143637>
     6
     7        Reviewed by Beth Dakin.
     8
     9        Commit scale factor changes before dirty rect changes, since setting the scale factor
     10        can lead to more rects being dirtied when using the tile cache.
     11
     12        * platform/graphics/ca/GraphicsLayerCA.cpp:
     13        (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
     14
    1152012-03-29  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r112555 r112573  
    10421042    if (m_uncommittedChanges & AnimationChanged)
    10431043        updateLayerAnimations();
    1044    
     1044
     1045    // Updating the contents scale can cause parts of the layer to be invalidated,
     1046    // so make sure to update the contents scale before updating the dirty rects.
     1047    if (m_uncommittedChanges & ContentsScaleChanged)
     1048        updateContentsScale(pageScaleFactor, positionRelativeToBase);
     1049
    10451050    if (m_uncommittedChanges & DirtyRectsChanged)
    10461051        repaintLayerDirtyRects();
     
    10571062    if (m_uncommittedChanges & AcceleratesDrawingChanged)
    10581063        updateAcceleratesDrawing();
    1059    
    1060     if (m_uncommittedChanges & ContentsScaleChanged)
    1061         updateContentsScale(pageScaleFactor, positionRelativeToBase);
    10621064}
    10631065
Note: See TracChangeset for help on using the changeset viewer.