Changeset 148052 in webkit


Ignore:
Timestamp:
Apr 9, 2013, 2:28:50 PM (12 years ago)
Author:
timothy_horton@apple.com
Message:

[wk2] IconDatabase images should be decoded in the WebProcess
https://bugs.webkit.org/show_bug.cgi?id=112524
<rdar://problem/10133914>

Reviewed by Simon Fraser.

Move an ASSERT that dereferenced a pointer inside the null-check for that pointer.

  • loader/icon/IconDatabase.cpp:

(WebCore::IconDatabase::setIconBitmapForIconURL):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148050 r148052  
     12013-04-09  Tim Horton  <timothy_horton@apple.com>
     2
     3        [wk2] IconDatabase images should be decoded in the WebProcess
     4        ​https://bugs.webkit.org/show_bug.cgi?id=112524
     5        <rdar://problem/10133914>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Move an ASSERT that dereferenced a pointer inside the null-check for that pointer.
     10
     11        * loader/icon/IconDatabase.cpp:
     12        (WebCore::IconDatabase::setIconBitmapForIconURL):
     13
    1142013-04-09  Eric Carlson  <eric.carlson@apple.com>
    215
  • trunk/Source/WebCore/loader/icon/IconDatabase.cpp

    r148034 r148052  
    599599{
    600600    ASSERT_NOT_SYNC_THREAD();
    601     ASSERT(imageOriginal->isBitmapImage());
    602601   
    603602    // Cannot do anything with imageOriginal or iconURLOriginal that would end up storing them without deep copying first
     
    608607    RefPtr<Image> image;
    609608    if (imageOriginal) {
     609        ASSERT(imageOriginal->isBitmapImage());
     610
    610611        OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(imageOriginal->size());
    611612        GraphicsContext* context = imageBuffer->context();
Note: See TracChangeset for help on using the changeset viewer.