Changeset 141833 in webkit


Ignore:
Timestamp:
Feb 4, 2013 4:54:34 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Coordinated Graphics: crash in TiledBackingStore::adjustForContentsRect
https://bugs.webkit.org/show_bug.cgi?id=107639

Patch by Seulgi Kim <seulgikim@company100.net> on 2013-02-04
Reviewed by Kenneth Rohde Christiansen.

In TiledBackingStore::adjustForContentsRect method, inflating is not
needed when there is no intersections between the cover/keep rect and
the content rect.

No new tests, no change in functionality.

  • platform/graphics/TiledBackingStore.cpp:

(WebCore::TiledBackingStore::adjustForContentsRect):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141832 r141833  
     12013-02-04  Seulgi Kim  <seulgikim@company100.net>
     2
     3        Coordinated Graphics: crash in TiledBackingStore::adjustForContentsRect
     4        https://bugs.webkit.org/show_bug.cgi?id=107639
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        In TiledBackingStore::adjustForContentsRect method, inflating is not
     9        needed when there is no intersections between the cover/keep rect and
     10        the content rect.
     11
     12        No new tests, no change in functionality.
     13
     14        * platform/graphics/TiledBackingStore.cpp:
     15        (WebCore::TiledBackingStore::adjustForContentsRect):
     16
    1172013-02-04  Stephen White  <senorblanco@chromium.org>
    218
  • trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp

    r139991 r141833  
    363363        return;
    364364
     365    /*
     366     * In the following case, there is no intersection of the contents rect and the cover/keep rect.
     367     * Thus the latter should not be inflated.
     368     *
     369     *  +---------------+
     370     *  |   m_rect      |
     371     *  +---------------+
     372     *
     373     *          +-------------------------------+
     374     *          |      cover or keep rect       |
     375     *          |         +---------+           |
     376     *          |         | visible |           |
     377     *          |         |  rect   |           |
     378     *          |         +---------+           |
     379     *          +-------------------------------+
     380     */
     381    if (rect.isEmpty())
     382        return;
     383
    365384    // Even now we might cover more than the content area so let's inflate in the
    366385    // opposite directions.
Note: See TracChangeset for help on using the changeset viewer.