[Webkit-unassigned] [Bug 30267] editing\pasteboard\paste-xml.xhtml should not be skipped for windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 12 15:29:26 PDT 2009


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





--- Comment #10 from Darin Adler <darin at apple.com>  2009-10-12 15:29:25 PDT ---
(In reply to comment #9)
> Looks to me the current fast path (performTrivialReplace) simply
> replaces the string in the text node. The clipboard
> data has style info, are we able to do simple text paste in this case?

This may be too difficult to do, but the idea would be to test that the style
is exactly the same as the surrounding text. If it is, then take the fast
patch.

Given the markup you showed it seems that's going to be a challenge. It would
be easy to detect that this is just some text inside some nested span elements.
But I can't see how we could efficiently check that none of the style is
needed. We'd have to somehow parse the style attributes and check that they
match the computed style. It might be possible, but I don't know exactly how
you'd have to code it.

It also seems like a problem that we have two spans on the clipboard in this
case. That's arguably a flaw in the copy code.

Anyway, lets land expected results for Windows -- too bad we can't easily fix
this to work the same way on all platforms, and can't make this simple case use
a simple fast case.

-- 
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