Changeset 59363 in webkit


Ignore:
Timestamp:
May 13, 2010 7:35:03 AM (14 years ago)
Author:
antti.j.koivisto@nokia.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=39063
[Qt] Tiled backing store checker pattern does not paint correctly when scaling factor is not 1

Reviewed by Kenneth Rohde Christiansen.

Use the dirty rect that has been adjusted for scaling instead of the original one.

  • platform/graphics/TiledBackingStore.cpp:

(WebCore::TiledBackingStore::paint):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r59362 r59363  
     12010-05-13  Antti Koivisto  <koivisto@iki.fi>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=39063
     6        [Qt] Tiled backing store checker pattern does not paint correctly when scaling factor is not 1
     7
     8        Use the dirty rect that has been adjusted for scaling instead of the original one.
     9
     10        * platform/graphics/TiledBackingStore.cpp:
     11        (WebCore::TiledBackingStore::paint):
     12
    1132010-05-13  Chang Shu  <chang.shu@nokia.com>
    214
  • trunk/WebCore/platform/graphics/TiledBackingStore.cpp

    r56184 r59363  
    121121                currentTile->paint(context, dirtyRect);
    122122            else {
    123                 FloatRect tileRect = tileRectForCoordinate(currentCoordinate);
    124                 FloatRect target = intersection(tileRect, FloatRect(rect));
    125                 Tile::paintCheckerPattern(context, target);
     123                IntRect tileRect = tileRectForCoordinate(currentCoordinate);
     124                IntRect target = intersection(tileRect, dirtyRect);
     125                if (target.isEmpty())
     126                    continue;
     127                Tile::paintCheckerPattern(context, FloatRect(target));
    126128            }
    127129        }
Note: See TracChangeset for help on using the changeset viewer.