[Title] [WK2] Recover a loss of dirty region.
[Issue#] N_SE-26405
[Problem] TBS can not update the tile due to a loss of dirty region.
[Cause] intersecting dirty region with keepRect can cause the loss of dirty resion.
[Solution] Remove intersect code and invalidate all dirties.
{
IntRect dirtyRect(mapFromContents(contentsDirtyRect));
- // Only iterate on the part of the rect that we know we might have tiles.
- IntRect coveredDirtyRect = intersection(dirtyRect, m_keepRect);
- Tile::Coordinate topLeft = tileCoordinateForPoint(coveredDirtyRect.location());
- Tile::Coordinate bottomRight = tileCoordinateForPoint(innerBottomRight(coveredDirtyRect));
+ Tile::Coordinate topLeft = tileCoordinateForPoint(dirtyRect.location());
+ Tile::Coordinate bottomRight = tileCoordinateForPoint(innerBottomRight(dirtyRect));
for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {