Crash in CompositeEditCommand::insertNodeAt.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Mar 2013 21:38:19 +0000 (21:38 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Mar 2013 21:38:19 +0000 (21:38 +0000)
commit1e6b91597fdc0e63628c906d8afffe8b95fd690c
tree3052c13e74996fa3d253df99c2c7e5b8a05d696f
parentae1b4c05a6aa9524c73a44878c16e53fab84a7ef
Crash in CompositeEditCommand::insertNodeAt.
https://bugs.webkit.org/show_bug.cgi?id=112280

Reviewed by Ryosuke Niwa.

* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::insertNodeAt): Fix incorrect cast use of toElement.
Subsitute with toContainerNode.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/CompositeEditCommand.cpp