LayoutTests:
Reviewed by levi
<rdar://problem/
4242293>
Poor paste fidelity of http://www.google.com/
Removed one of the two extraneous newlines that are introduced on paste:
* editing/pasteboard/paste-table-003-expected.checksum:
* editing/pasteboard/paste-table-003-expected.png:
* editing/pasteboard/paste-table-003-expected.txt:
Fewer pastes remove nodes containing the selection b/c of
the changes to interchange newlines:
* editing/pasteboard/paste-line-endings-007-expected.txt:
* editing/pasteboard/paste-line-endings-008-expected.txt:
* editing/pasteboard/paste-line-endings-009-expected.txt:
Added:
* editing/pasteboard/
4242293-1-expected.checksum: Added.
* editing/pasteboard/
4242293-1-expected.png: Added.
* editing/pasteboard/
4242293-1-expected.txt: Added.
* editing/pasteboard/
4242293-1.html: Added.
* editing/pasteboard/
4242293-expected.checksum: Added.
* editing/pasteboard/
4242293-expected.png: Added.
* editing/pasteboard/
4242293-expected.txt: Added.
* editing/pasteboard/
4242293.html: Added.
WebCore:
Reviewed by levi
More changes for:
<rdar://problem/
4242293>
Poor paste fidelity of http://www.google.com/
* editing/markup.cpp:
(WebCore::needInterchangeNewlineAfter): Added.
(WebCore::createMarkup):
Only add an interchangeNewline if we're annotating for interchange. Can't test
this until we expose createMarkup in non-annotate mode (I'd expose Range::toHTML).
Remove the FIXME about prepending the interchangeNewline before creating the rest
of the markup. Its correct to surround the interchangeNewline in ancestors of the
adjusted startNode.
Fixed the check to see if an interchangeNewline is needed (!inSameBlock). This would
add an interchangeNewline for a selection that started before a table.
Removed the workaround for the bug where markup for a table was not included when
selecting the contents of a table, since this change fixes the general problem of
markup for ancestors of the startNode being left out.
Don't leave out ancestors of the startNode as we leave their subtrees. Execute the
code to include them even if we closed ancestors in the ancestorsToClose list.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15673
268f45cc-cd09-0410-ab3c-
d52691b4dbfc