LayoutTests:
Reviewed by justin
<http://bugzilla.opendarwin.org/show_bug.cgi?id=9507>
Empty style spans created in applyInlineStyle
<rdar://problem/
4515463>
REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
* editing/pasteboard/paste-
4039777-fix-expected.txt:
* editing/pasteboard/testcase-9507-expected.checksum: Added.
* editing/pasteboard/testcase-9507-expected.png: Added.
* editing/pasteboard/testcase-9507-expected.txt: Added.
* editing/pasteboard/testcase-9507.html: Added.
* editing/unsupported-content/table-delete-001-expected.txt:
* editing/selection/selectNode-expected.png:
* editing/selection/selectNode-expected.checksum:
* editing/selection/selectNode-expected.txt:
WebCore:
Reviewed by justin
<http://bugzilla.opendarwin.org/show_bug.cgi?id=9507>
Empty style spans created in applyInlineStyle
Improves paste fidelity because some of these empty font/style spans had a non-zero
size and were messing up the layout of pasted content:
<rdar://problem/
4515463>
REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
* editing/ApplyStyleCommand.cpp:
(WebCore::ApplyStyleCommand::applyInlineStyle): Use the adjusted start node instead
of start.node(). Don't do any application if the endpoints are swapped. Adjust
endNode if the start node is a descendant of it, so that the pre-order traversal will
terminate properly.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15714
268f45cc-cd09-0410-ab3c-
d52691b4dbfc