Lots of code like: ASSERT(document); Frame* frame = document->frame(); ASSERT(frame); EditCommand* lastEditCommand = frame->editor()->lastEditCommand(); if (isOpenForMoreTypingCommand(lastEditCommand)) { is duplicated throughout TypingCommand.
Created attachment 118179 [details] cleanup
Comment on attachment 118179 [details] cleanup Looks good.
Thanks for the review!
Committed r102225: <http://trac.webkit.org/changeset/102225>