Changeset 19368 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
02/02/07 11:47:58 (2 years ago)
Author:
brmorris
Message:

bujtas, Reviewed by yongjun.

DESC: browser crashes on www.tays.fi. when multiple layers are referring to the same background image, the render_object does not do proper deref on the image.
fix: loop through the background layers and defer background images
http://bugs.webkit.org/show_bug.cgi?id=12543

Location:
S60/trunk/WebCore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/ChangeLog

    r19340 r19368  
     1bujtas, Reviewed by yongjun. 
     2        DESC: browser crashes on www.tays.fi. when multiple layers are referring to the same background image, the render_object does not do proper deref on the image. 
     3        fix: loop through the background layers and defer background images 
     4        http://bugs.webkit.org/show_bug.cgi?id=12543 
     5 
     6        WARNING: NO TEST CASES ADDED OR CHANGED 
     7 
     8        * khtml/rendering/render_object.cpp: 
     9        (RenderObject::arenaDelete): 
     10 
    111brmorris, Reviewed by zalan 
    212 DESC: Updated def file 
  • S60/trunk/WebCore/khtml/rendering/render_object.cpp

    r16625 r19368  
    18621862void RenderObject::arenaDelete(RenderArena *arena, void *) 
    18631863{ 
    1864     if (m_style->backgroundImage()) 
    1865         m_style->backgroundImage()->deref(this); 
     1864    for (const BackgroundLayer* layer = m_style->backgroundLayers(); layer; layer = layer->next()) 
     1865        if (layer->backgroundImage()) 
     1866            layer->backgroundImage()->deref(this); 
     1867 
    18661868    if (m_style) 
    18671869        m_style->deref(arena);