[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:22:19 PDT 2009


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





--- Comment #9 from Victor Wang <victorw at chromium.org>  2009-10-12 15:22:19 PDT ---
Here is the data in Win clipboard:
<span class="Apple-style-span" style="background-color: rgba(0, 
0, 0, 0); border-collapse: separate; color: rgb(0, 0, 0); font-f
amily: 'times new roman'; font-style: normal; font-variant: norm
al; font-weight: normal; letter-spacing: normal; line-height: no
rmal; orphans: 2; text-align: auto; text-indent: 0px; text-trans
form: none; white-space: normal; widows: 2; word-spacing: 0px; -
webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-s
pacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-t
ext-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size
: medium; "><span class="Apple-style-span" style="font-size: 24p
x; ">bar</span></span>

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?
The fast path works for this layout test on mac because the fragment
and the test node that holds the selection have the same styles
(the texts to paste is selected from texts that they will paste to.).
My understanding is the style info will be lost on mac for more general
cases due to the workaround. Let me know if I misunderstood or miss
anything.

Thanks,
Victor

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