Summary: | Create a fast path for ReplaceSelectionCommand that merges text nodes | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Justin Garcia <justin.garcia> | ||||||
Component: | HTML Editing | Assignee: | Justin Garcia <justin.garcia> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | adele, eric, kmccullough, mitz | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Justin Garcia
2009-04-15 00:53:24 PDT
Created attachment 29492 [details]
patch
Created attachment 29495 [details]
patch
updated changelog
Comment on attachment 29495 [details]
patch
r=me. You can move the definition of textNode and text after the last early return.
http://trac.webkit.org/changeset/42549 Checked in a fast path that works for plain text regions and rich text regions when pasting plain text. Still need to handle rich text (fragments that are wrapped in style spans but doing so will necessitate using positions instead of nodes to track the start/end of inserted content. |