Source/WebCore: Add RefPtrs for parent and sibling counter nodes
authorcdn@chromium.org <cdn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Feb 2012 22:30:09 +0000 (22:30 +0000)
committercdn@chromium.org <cdn@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Feb 2012 22:30:09 +0000 (22:30 +0000)
commitee0a32fef570bbd4d5c586837a45ba6ffc41959a
tree5fab471d21706fd0bd6aaf9c72cb1062f833e3ce
parentb238b376cd219248e8925b0d2a9ffbabdcd63fc5
Source/WebCore: Add RefPtrs for parent and sibling counter nodes
https://bugs.webkit.org/show_bug.cgi?id=75212

Reviewed by Adam Barth.

Test: fast/css/counters/reparent-table-children-with-counters-crash.html

* rendering/RenderCounter.cpp:
(WebCore::findPlaceForCounter):
(WebCore::makeCounterNode):
(WebCore::updateCounters):

LayoutTests: Test for crash when counter nodes are reparented outside of tables
https://bugs.webkit.org/show_bug.cgi?id=75212

Reviewed by Adam Barth.

* fast/css/counters/reparent-table-children-with-counters-crash-expected.txt: Added.
* fast/css/counters/reparent-table-children-with-counters-crash.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/counters/reparent-table-children-with-counters-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/counters/reparent-table-children-with-counters-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderCounter.cpp