Changeset 77312 in webkit
- Timestamp:
- Feb 1, 2011 2:48:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp
r76689 r77312 74 74 IntRect dirtyRect(mapFromContents(contentsDirtyRect)); 75 75 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) { 81 81 RefPtr<Tile> currentTile = tileAt(Tile::Coordinate(xCoordinate, yCoordinate)); 82 82 if (!currentTile) … … 134 134 IntRect dirtyRect = mapFromContents(rect); 135 135 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) { 141 141 Tile::Coordinate currentCoordinate(xCoordinate, yCoordinate); 142 142 RefPtr<Tile> currentTile = tileAt(currentCoordinate); … … 229 229 Vector<Tile::Coordinate> tilesToCreate; 230 230 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) { 235 235 Tile::Coordinate currentCoordinate(xCoordinate, yCoordinate); 236 236 if (tileAt(currentCoordinate))
Note: See TracChangeset
for help on using the changeset viewer.