-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=67762 Patch by Shinya Kawanaka <shinyak@google.com> on 2011-09-08 Reviewed by Ryosuke Niwa. Source/WebCore: WebCore::enclosingBlock may return null, but its return value was not checked. This patch checks it. Tests: editing/inserting/insert-without-enclosing-block.html * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): Added null check. LayoutTests: WebCore::enclosingBlock may return NULL, but its return value was not checked. This patch checks it. * editing/inserting/insert-without-enclosing-block-expected.txt: Added. * editing/inserting/insert-without-enclosing-block.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7bc041d6