Changeset 18952 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
01/18/07 13:25:18 (2 years ago)
Author:
brmorris
Message:

2007-01-17 w3liu <wei.liu@nokia.com>

Reviewed by yongjun.zhang@nokia.com.
DESC: [S60] TSW ID: PNIO-6X4H9N: S60 A3.1 wk50_004: www.lookcyclesusa.com crashes browser
http://bugs.webkit.org/show_bug.cgi?id=12304

  • khtml/rendering/render_box.cpp: (RenderBox::paintBoxDecorations):
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/khtml/rendering/render_box.cpp

    r18949 r18952  
    341341    // independent of the body.  Go through the DOM to get to the root element's render object, 
    342342    // since the root could be inline and wrapped in an anonymous block. 
    343     if (!isBody() || !document()->isHTMLDocument() ||  
    344         ( document()->documentElement()->renderer() &&  
    345           document()->documentElement()->renderer()->style()->hasBackground() ) ) 
     343    if (!isBody() || !document()->isHTMLDocument() || 
     344        ( document()->documentElement()->renderer() 
     345          && document()->documentElement()->renderer()->style()->hasBackground()) 
     346          ) 
    346347        paintBackgrounds(i.p, style()->backgroundColor(), style()->backgroundLayers(), my, mh, _tx, _ty, w, h); 
    347348