Source/WebCore: Crash when removing unrenderered nodes in replacement fragment. qtwebkit-2.2-week29
authorAbhishek Arya <inferno@chromium.org>
Tue, 19 Jul 2011 17:39:03 +0000 (17:39 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 22 Jul 2011 17:44:12 +0000 (14:44 -0300)
commit4e1a62f66a363473c488c6bbd8410364db3f79a0
tree44062ce0603c76a627973a567da899e7dd7e110f
parentff5346793f7e94379696467cc610f7317b504547
Source/WebCore: Crash when removing unrenderered nodes in replacement fragment.
https://bugs.webkit.org/show_bug.cgi?id=64801

Reviewed by Ryosuke Niwa.

Test: editing/pasteboard/replacement-fragment-remove-unrendered-node-crash.html

* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplacementFragment::removeUnrenderedNodes):

LayoutTests: Tests that we do not crash when removing unrendering nodes
in a replacement fragment.
https://bugs.webkit.org/show_bug.cgi?id=64801

Reviewed by Ryosuke Niwa.

* editing/pasteboard/replacement-fragment-remove-unrendered-node-crash-expected.txt: Added.
* editing/pasteboard/replacement-fragment-remove-unrendered-node-crash.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/replacement-fragment-remove-unrendered-node-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/replacement-fragment-remove-unrendered-node-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/ReplaceSelectionCommand.cpp