Changeset 19637 in webkit
- Timestamp:
- Feb 14, 2007 9:51:11 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r19636 r19637 1 2007-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 1 15 2007-02-14 Adam Roben <aroben@apple.com> 2 16 -
trunk/WebCore/rendering/RenderBox.cpp
r19490 r19637 428 428 void RenderBox::imageChanged(CachedImage* image) 429 429 { 430 if (!image || !image->canRender() || !parent() )430 if (!image || !image->canRender() || !parent() || !view()) 431 431 return; 432 432 … … 440 440 RenderBox* backgroundRenderer; 441 441 442 if ( view() && (isBody() || isRoot())) {442 if (isBody() || isRoot()) { 443 443 // Our background propagates to the root. 444 444 backgroundRenderer = view();
Note: See TracChangeset
for help on using the changeset viewer.