Changeset 78783 in webkit


Ignore:
Timestamp:
Feb 16, 2011 8:27:04 PM (13 years ago)
Author:
yael.aharon@nokia.com
Message:

2011-02-16 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Andreas Kling.

[Qt] Tiles are not created for webkit2 after r77286.
https://bugs.webkit.org/show_bug.cgi?id=54577

When using the default tile size of 1024x1024, only one tile is created.
Make sure to create this tile by undoing what seems to be a typo in r77286.

  • UIProcess/TiledDrawingAreaProxy.cpp: (WebKit::TiledDrawingAreaProxy::paint): (WebKit::TiledDrawingAreaProxy::createTiles):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r78737 r78783  
     12011-02-16  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Tiles are not created for webkit2 after r77286.
     6        https://bugs.webkit.org/show_bug.cgi?id=54577
     7
     8        When using the default tile size of 1024x1024, only one tile is created.
     9        Make sure to create this tile by undoing what seems to be a typo in r77286.
     10
     11        * UIProcess/TiledDrawingAreaProxy.cpp:
     12        (WebKit::TiledDrawingAreaProxy::paint):
     13        (WebKit::TiledDrawingAreaProxy::createTiles):
     14
    115== Rolled over to ChangeLog-2011-02-16 ==
  • trunk/Source/WebKit2/UIProcess/TiledDrawingAreaProxy.cpp

    r78426 r78783  
    342342    TiledDrawingAreaTile::Coordinate bottomRight = tileCoordinateForPoint(IntPoint(dirtyRect.maxX(), dirtyRect.maxY()));
    343343
    344     for (unsigned yCoordinate = topLeft.y(); yCoordinate < bottomRight.y(); ++yCoordinate) {
    345         for (unsigned xCoordinate = topLeft.x(); xCoordinate < bottomRight.x(); ++xCoordinate) {
     344    for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
     345        for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {
    346346            TiledDrawingAreaTile::Coordinate currentCoordinate(xCoordinate, yCoordinate);
    347347            RefPtr<TiledDrawingAreaTile> currentTile = tileAt(currentCoordinate);
     
    439439    TiledDrawingAreaTile::Coordinate topLeft = tileCoordinateForPoint(visibleRect.location());
    440440    TiledDrawingAreaTile::Coordinate bottomRight = tileCoordinateForPoint(IntPoint(visibleRect.maxX(), visibleRect.maxY()));
    441     for (unsigned yCoordinate = topLeft.y(); yCoordinate < bottomRight.y(); ++yCoordinate) {
    442         for (unsigned xCoordinate = topLeft.x(); xCoordinate < bottomRight.x(); ++xCoordinate) {
     441    for (unsigned yCoordinate = topLeft.y(); yCoordinate <= bottomRight.y(); ++yCoordinate) {
     442        for (unsigned xCoordinate = topLeft.x(); xCoordinate <= bottomRight.x(); ++xCoordinate) {
    443443            TiledDrawingAreaTile::Coordinate currentCoordinate(xCoordinate, yCoordinate);
    444444            // Distance is 0 for all currently visible tiles.
Note: See TracChangeset for help on using the changeset viewer.