Changeset 111735 in webkit


Ignore:
Timestamp:
Mar 22, 2012 11:32:49 AM (12 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

TiledBackingStore: Fix test regressions that appeared with r111560.
https://bugs.webkit.org/show_bug.cgi?id=81519

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

The visible rect wasn't intersected with the contents rect anymore which
could lead to an astronomical layer size to check for intersecting tiles.

Add a visibleContentsRect that doesn't do the conversion and use it
in visibleAreaIsCovered.

  • platform/graphics/TiledBackingStore.cpp:

(WebCore::TiledBackingStore::visibleContentsRect):
(WebCore):
(WebCore::TiledBackingStore::visibleRect):
(WebCore::TiledBackingStore::visibleAreaIsCovered):

  • platform/graphics/TiledBackingStore.h:

(TiledBackingStore):

LayoutTests:

  • platform/qt-5.0-wk2/Skipped:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r111732 r111735  
     12012-03-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        TiledBackingStore: Fix test regressions that appeared with r111560.
     4        https://bugs.webkit.org/show_bug.cgi?id=81519
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        * platform/qt-5.0-wk2/Skipped:
     9
    1102012-03-22  Dan Bernstein  <mitz@apple.com>
    211
  • trunk/LayoutTests/platform/qt-5.0-wk2/Skipped

    r111711 r111735  
    531531compositing/geometry/tall-page-composited.html
    532532
    533 # REGRESSION(r111560): compositing/geometry/preserve-3d-switching.html timeout.
    534 # https://bugs.webkit.org/show_bug.cgi?id=81519
    535 compositing/geometry/preserve-3d-switching.html
    536 # REGRESSION(r111560): The following tests are crashing.
    537 # https://bugs.webkit.org/show_bug.cgi?id=81519
    538 compositing/geometry/layer-due-to-layer-children.html
    539 compositing/geometry/repaint-foreground-layer.html
    540 
    541533# Boxes are not showing the correct perspective.
    542534transforms/3d/general/perspective-units.html
  • trunk/Source/WebCore/ChangeLog

    r111733 r111735  
     12012-03-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        TiledBackingStore: Fix test regressions that appeared with r111560.
     4        https://bugs.webkit.org/show_bug.cgi?id=81519
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        The visible rect wasn't intersected with the contents rect anymore which
     9        could lead to an astronomical layer size to check for intersecting tiles.
     10
     11        Add a visibleContentsRect that doesn't do the conversion and use it
     12        in visibleAreaIsCovered.
     13
     14        * platform/graphics/TiledBackingStore.cpp:
     15        (WebCore::TiledBackingStore::visibleContentsRect):
     16        (WebCore):
     17        (WebCore::TiledBackingStore::visibleRect):
     18        (WebCore::TiledBackingStore::visibleAreaIsCovered):
     19        * platform/graphics/TiledBackingStore.h:
     20        (TiledBackingStore):
     21
    1222012-03-22  Joe Thomas  <joethomas@motorola.com>
    223
  • trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp

    r111561 r111735  
    167167}
    168168
     169IntRect TiledBackingStore::visibleContentsRect() const
     170{
     171    return intersection(m_client->tiledBackingStoreVisibleRect(), m_client->tiledBackingStoreContentsRect());
     172}
     173
    169174IntRect TiledBackingStore::visibleRect() const
    170175{
    171     return mapFromContents(intersection(m_client->tiledBackingStoreVisibleRect(), m_client->tiledBackingStoreContentsRect()));
     176    return mapFromContents(visibleContentsRect());
    172177}
    173178
     
    228233bool TiledBackingStore::visibleAreaIsCovered() const
    229234{
    230     return coverageRatio(m_client->tiledBackingStoreVisibleRect()) == 1.0f;
     235    return coverageRatio(visibleContentsRect()) == 1.0f;
    231236}
    232237
  • trunk/Source/WebCore/platform/graphics/TiledBackingStore.h

    r109914 r111735  
    101101    void removeTile(const Tile::Coordinate& coordinate);
    102102
     103    IntRect visibleContentsRect() const;
    103104    IntRect visibleRect() const;
    104105
Note: See TracChangeset for help on using the changeset viewer.