Changeset 77312 in webkit


Ignore:
Timestamp:
Feb 1, 2011 2:48:39 PM (13 years ago)
Author:
hyatt@apple.com
Message:

Fix Qt bustage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp

    r76689 r77312  
    7474    IntRect dirtyRect(mapFromContents(contentsDirtyRect));
    7575   
    76     Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.topLeft());
    77     Tile::Coordinate bottomRight = tileCoordinateForPoint(dirtyRect.bottomRight());
    78    
    79     for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
    80         for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {
     76    Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.location());
     77    Tile::Coordinate bottomRight = tileCoordinateForPoint(IntPoint(dirtyRect.maxX(), dirtyRect.maxY()));
     78   
     79    for (unsigned yCoordinate = topLeft.y(); yCoordinate < bottomRight.y(); ++yCoordinate) {
     80        for (unsigned xCoordinate = topLeft.x(); xCoordinate < bottomRight.x(); ++xCoordinate) {
    8181            RefPtr<Tile> currentTile = tileAt(Tile::Coordinate(xCoordinate, yCoordinate));
    8282            if (!currentTile)
     
    134134    IntRect dirtyRect = mapFromContents(rect);
    135135   
    136     Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.topLeft());
    137     Tile::Coordinate bottomRight = tileCoordinateForPoint(dirtyRect.bottomRight());
    138 
    139     for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
    140         for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {
     136    Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.location());
     137    Tile::Coordinate bottomRight = tileCoordinateForPoint(IntPoint(dirtyRect.maxX(), dirtyRect.maxY()));
     138
     139    for (unsigned yCoordinate = topLeft.y(); yCoordinate < bottomRight.y(); ++yCoordinate) {
     140        for (unsigned xCoordinate = topLeft.x(); xCoordinate < bottomRight.x(); ++xCoordinate) {
    141141            Tile::Coordinate currentCoordinate(xCoordinate, yCoordinate);
    142142            RefPtr<Tile> currentTile = tileAt(currentCoordinate);
     
    229229    Vector<Tile::Coordinate> tilesToCreate;
    230230    unsigned requiredTileCount = 0;
    231     Tile::Coordinate topLeft = tileCoordinateForPoint(coverRect.topLeft());
    232     Tile::Coordinate bottomRight = tileCoordinateForPoint(coverRect.bottomRight());
    233     for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
    234         for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {
     231    Tile::Coordinate topLeft = tileCoordinateForPoint(coverRect.location());
     232    Tile::Coordinate bottomRight = tileCoordinateForPoint(IntPoint(coverRect.maxX(), dirtyRect.maxY()));
     233    for (unsigned yCoordinate = topLeft.y(); yCoordinate < bottomRight.y(); ++yCoordinate) {
     234        for (unsigned xCoordinate = topLeft.x(); xCoordinate < bottomRight.x(); ++xCoordinate) {
    235235            Tile::Coordinate currentCoordinate(xCoordinate, yCoordinate);
    236236            if (tileAt(currentCoordinate))
Note: See TracChangeset for help on using the changeset viewer.