-
jparent@chromium.org authored
2009-06-23 Ryosuke Niwa <rniwa@google.com> Reviewed by Justin Garcia. Undo the changeset 21212 to fix the regression bug 14062. The changeset 21212 attempted to fix rdar://problem/5002441. The changeset 21212 modified InsertTextCommand::input so as to convert all spaces in text to non-breaking spaces for rdar://problem/5002441. However, the bug was originally caused by rebalanceWhitespaceAt and this workaround introduced a regression bug 14062. Because rebalanceWhitespaceAt appears to behave correctly now, the workaround introduced in 21212 is no longer needed. Test: editing/inserting/space-after-removeformat.html * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input): LayoutTests: 2009-06-23 Ryosuke Niwa <rniwa@google.com> Reviewed by Justin Garcia. Undo the changeset 21212 to fix the regression bug 14062. The changeset 21212 attempted to fix rdar://problem/5002441. The changeset 21212 modified InsertTextCommand::input so as to convert all spaces in text to non-breaking spaces for rdar://problem/5002441. However, the bug was originally caused by rebalanceWhitespaceAt and this workaround introduced a regression bug 14062. Because rebalanceWhitespaceAt appears to behave correctly now, the workaround introduced in 21212 is no longer needed. The following test cases are affected by this change. This patch removes unappropriate non-breaking spaces ( ) and inserts normal spaces instead. * editing/deleting/2610675-1-expected.txt: Replaced. * editing/deleting/2610675-2-expected.txt: Replaced. * editing/deleting/2610675-3-expected.txt: Replaced. * editing/inserting/insert-before-link-1-expected.txt: Replaced. * editing/inserting/space-after-removeformat-expected.txt: Added. * editing/inserting/space-after-removeformat.html: Added. * platform/mac/editing/execCommand/5482023-expected.checksum: Replaced. * platform/mac/editing/execCommand/5482023-expected.png: Replaced. * platform/mac/editing/execCommand/5482023-expected.txt: Replaced. * platform/mac/editing/input/text-input-controller-expected.txt: Replaced. * platform/mac/editing/inserting/editable-html-element-expected.checksum: Replaced. * platform/mac/editing/inserting/editable-html-element-expected.png: Replaced. * platform/mac/editing/inserting/editable-html-element-expected.txt: Replaced. * platform/mac/editing/pasteboard/4989774-expected.checksum: Replaced. * platform/mac/editing/pasteboard/4989774-expected.png: Replaced. * platform/mac/editing/pasteboard/4989774-expected.txt: Replaced. * platform/mac/editing/selection/4983858-expected.checksum: Replaced. * platform/mac/editing/selection/4983858-expected.png: Replaced. * platform/mac/editing/selection/4983858-expected.txt: Replaced. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0f0ad610