Changeset 197580 in webkit


Ignore:
Timestamp:
Mar 4, 2016 12:19:45 PM (8 years ago)
Author:
Simon Fraser
Message:

Fix crash seen in iOS simulator tests
https://bugs.webkit.org/show_bug.cgi?id=155030

Reviewed by Tim Horton.

owningGraphicsLayer() can be null when the tileSizeChangeTimer fires, so null check
it and return, as we do for the tileRevalidationTimer.

  • platform/graphics/ca/TileController.cpp:

(WebCore::TileController::tileSizeChangeTimerFired):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r197579 r197580  
     12016-03-04  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix crash seen in iOS simulator tests
     4        https://bugs.webkit.org/show_bug.cgi?id=155030
     5
     6        Reviewed by Tim Horton.
     7
     8        owningGraphicsLayer() can be null when the tileSizeChangeTimer fires, so null check
     9        it and return, as we do for the tileRevalidationTimer.
     10
     11        * platform/graphics/ca/TileController.cpp:
     12        (WebCore::TileController::tileSizeChangeTimerFired):
     13
    1142016-03-04  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/platform/graphics/ca/TileController.cpp

    r197541 r197580  
    478478void TileController::tileSizeChangeTimerFired()
    479479{
     480    if (!owningGraphicsLayer())
     481        return;
     482
    480483    m_tileSizeLocked = false;
    481484    setNeedsRevalidateTiles();
Note: See TracChangeset for help on using the changeset viewer.