Changeset 111560 in webkit


Ignore:
Timestamp:
Mar 21, 2012 10:16:46 AM (12 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

TiledBackingStore: When checking if the visible area is covered, only convert to scaled coordinates once.
https://bugs.webkit.org/show_bug.cgi?id=81519

Reviewed by Kenneth Rohde Christiansen.

Both visibleRect and coverageRatio call mapFromContents on the input rect,
this woulc cause the coverageRatio to never reach 1.0 when the contents is
scaled up.

  • platform/graphics/TiledBackingStore.cpp:

(WebCore::TiledBackingStore::visibleAreaIsCovered):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r111558 r111560  
     12012-03-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        TiledBackingStore: When checking if the visible area is covered, only convert to scaled coordinates once.
     4        https://bugs.webkit.org/show_bug.cgi?id=81519
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Both visibleRect and coverageRatio call mapFromContents on the input rect,
     9        this woulc cause the coverageRatio to never reach 1.0 when the contents is
     10        scaled up.
     11
     12        * platform/graphics/TiledBackingStore.cpp:
     13        (WebCore::TiledBackingStore::visibleAreaIsCovered):
     14
    1152012-03-21  Mao Yujie  <yujie.mao@intel.com>
    216
  • trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp

    r110995 r111560  
    228228bool TiledBackingStore::visibleAreaIsCovered() const
    229229{
    230     return coverageRatio(visibleRect()) == 1.0f;
     230    return coverageRatio(m_client->tiledBackingStoreVisibleRect()) == 1.0f;
    231231}
    232232
Note: See TracChangeset for help on using the changeset viewer.