Summary: | Don't reuse the last InsertTextCommand | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||
Component: | HTML Editing | Assignee: | Ryosuke Niwa <rniwa> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, enrica, justin.garcia, leviw, morrita, tkent | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 64414 | ||||||
Attachments: |
|
Description
Ryosuke Niwa
2011-07-12 18:02:12 PDT
Created attachment 100601 [details]
Patch
Comment on attachment 100601 [details]
Patch
Wow, I thought this reuse is for handling undo. But it isn't true....
(In reply to comment #2) > (From update of attachment 100601 [details]) > Wow, I thought this reuse is for handling undo. But it isn't true.... Undo/Redo is taken care by reusing TypingCommand. I'm guessing that this is an artifact of old days when InsertTextCommand was used differently than it is today. Comment on attachment 100601 [details]
Patch
Looks like you could get rid of:
virtual bool isInsertTextCommand() const;
as it is now unused.
Thanks for the review! (In reply to comment #4) > (From update of attachment 100601 [details]) > Looks like you could get rid of: > > virtual bool isInsertTextCommand() const; > > as it is now unused. Oh, you're right. I'll do that before I land. Committed r90933: <http://trac.webkit.org/changeset/90933> |