Changeset 19637 in webkit


Ignore:
Timestamp:
Feb 14, 2007 9:51:11 PM (17 years ago)
Author:
bdash
Message:

2007-02-14 Mitz Pettel <mitz@webkit.org>

Reviewed by Sam Weinig!

  • manual-tests/background-image-change-in-page-cache.html: Added.
  • rendering/RenderBox.cpp: (WebCore::RenderBox::imageChanged): Bail out if the object is not in a view, which can happen if the document is in the page cache and the same cached image used for its background is also being used in another document that is currently in view.
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r19636 r19637  
     12007-02-14  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Sam Weinig!
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=12773
     6          REGRESSION (r19490): Crash on ipx-server.de
     7
     8        * manual-tests/background-image-change-in-page-cache.html: Added.
     9        * rendering/RenderBox.cpp:
     10        (WebCore::RenderBox::imageChanged): Bail out if the object is not in a view,
     11        which can happen if the document is in the page cache and the same cached
     12        image used for its background is also being used in another document that
     13        is currently in view.
     14
    1152007-02-14  Adam Roben  <aroben@apple.com>
    216
  • trunk/WebCore/rendering/RenderBox.cpp

    r19490 r19637  
    428428void RenderBox::imageChanged(CachedImage* image)
    429429{
    430     if (!image || !image->canRender() || !parent())
     430    if (!image || !image->canRender() || !parent() || !view())
    431431        return;
    432432
     
    440440    RenderBox* backgroundRenderer;
    441441
    442     if (view() && (isBody() || isRoot())) {
     442    if (isBody() || isRoot()) {
    443443        // Our background propagates to the root.
    444444        backgroundRenderer = view();
Note: See TracChangeset for help on using the changeset viewer.