REGRESSION (r89900): Assertion failure on null view() when destroying the document
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 01:46:47 +0000 (01:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2012 01:46:47 +0000 (01:46 +0000)
commitc99d252e7a54f8bf47f182a33ea1208a0a679936
tree1f73c469724bc2d8555e44ad95f328659e44a26e
parent29c5e2bec9dacde37cfd5c19a9fbaa682d57f7d5
REGRESSION (r89900): Assertion failure on null view() when destroying the document
https://bugs.webkit.org/show_bug.cgi?id=91547

Patch by Elliott Sprehn <esprehn@gmail.com> on 2012-07-18
Reviewed by Abhishek Arya.

Source/WebCore:

Check for document destruction during insertion to avoid crash on null RenderView when trying
to count the number of RenderQuote and RenderCounter objects.

Test: fast/css-generated-content/bug91547.html

* rendering/RenderObjectChildList.cpp:
(WebCore::RenderObjectChildList::appendChildNode):
(WebCore::RenderObjectChildList::insertChildNode):

LayoutTests:

Test for crash caused by null RenderView in RenderQuote and RenderCounter.

* fast/css-generated-content/bug91547-expected.txt: Added.
* fast/css-generated-content/bug91547.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/bug91547-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/bug91547.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObjectChildList.cpp