-
sullivan@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=67763 Reviewed by Ryosuke Niwa. Source/WebCore: Changes editableRootForPosition() to use the position's containerNode instead of deprecatedNode so that positions which are before or after a given node cannot return that node as the editable root. Test: editing/inserting/insert-paragraph-selection-outside-contenteditable.html * editing/htmlediting.cpp: (WebCore::editableRootForPosition): use containerNode instead of deprecatedNode. LayoutTests: Tests for crash when the selection is outside the contenteditable node. * editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt: Added. * editing/inserting/insert-paragraph-selection-outside-contenteditable.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f91bb620