-
justing authored
Reviewed by John. <rdar://problem/5290534> Crash RenderTextControl::calcHeight() after deleting text in a search field Demonstrates the bug: * editing/deleting/5290534-expected.txt: Added. * editing/deleting/5290534.html: Added. Fixed a bug (an extra br was inserted) and removed a FIXME: * editing/deleting/4845371-expected.checksum: * editing/deleting/4845371-expected.png: * editing/deleting/4845371-expected.txt: * editing/deleting/4845371.html: Removed an unrendered br that was being incorrectly inserted: * editing/deleting/5126166-expected.txt: WebCore: Reviewed by John. <rdar://problem/5290534> Crash at RenderTextControl::calcHeight() after deleting text in a search field Editing removed a node that was part of a search field's internal structure that should not be removed. * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the selection to delete ends at [container, x], where x is the number of children in container, don't remove container. Special case code elsewhere in this function will remove it if necessary. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
395a18e8