[Webkit-unassigned] [Bug 24009] WebKit nests block elements when pasting paragraphs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 18 15:11:10 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=24009





--- Comment #7 from Ryosuke Niwa <rniwa at webkit.org>  2010-08-18 15:11:09 PST ---
areIdenticalElements is copied from ApplyStyleCommand, I'll be sharing it between ApplyStyleCommand and ReplaceSelectionCommand in my final patch.

This patch currently requires 3 rebaselines: editing/pasteboard/4242293-1.html, editing/pasteboard/copy-paste-bidi.html, and editing/selection/replace-selection-crash.html.  The first two tests need to be converted to dumpAsMarkup or dumpAsText tests first.  But changes are good as far as I looked at the render tree.

This patch does not fix the bug 26483 because of the bug 34564.  We could work-around the issue by handling style spans before pasting.  But the correct thing to do is not to wrap everything with style-spans.  It shouldn't be too hard to push styles to each element in the fragment and have ReplaceSelectionCommand remove all redundant styles at the pasting stage.  But we should probably do that in a separate patch.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list