Summary: | Provide a separate editing command to cleanup of redundant markup | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Enrica Casucci <enrica> | ||||||||||||
Component: | HTML Editing | Assignee: | Enrica Casucci <enrica> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | dglazkov, gustavo, pnormand, rakuco, webkit.review.bot, xan.lopez | ||||||||||||
Priority: | P2 | ||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Attachments: |
|
Description
Enrica Casucci
2012-04-04 18:16:48 PDT
Created attachment 135738 [details]
Patch
Comment on attachment 135738 [details] Patch Attachment 135738 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/12338039 Comment on attachment 135738 [details] Patch Attachment 135738 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/12336064 Comment on attachment 135738 [details] Patch Attachment 135738 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/12337071 Comment on attachment 135738 [details] Patch Attachment 135738 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/12337078 Created attachment 135745 [details]
Patch2
Attempting to fix build issues.
Comment on attachment 135745 [details] Patch2 Attachment 135745 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/12335085 Comment on attachment 135745 [details] Patch2 View in context: https://bugs.webkit.org/attachment.cgi?id=135745&action=review Please fix the gtk build before you land. Also, you probably need to modify EditorAllInOne.cpp for Windows. > Source/WebCore/editing/ReplaceSelectionCommand.cpp:1023 > - removeRedundantMarkup(insertedNodes); > + applyCommandToComposite(SimplifyMarkupCommand::create(document(), insertedNodes.firstNodeInserted(), insertedNodes.pastLastLeaf())); You should add simplifyMarkup() to CompositeEditCommand. > Source/WebCore/editing/SimplifyMarkupCommand.cpp:2 > + * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. Maybe you should add 2011 here? (In reply to comment #8) > (From update of attachment 135745 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=135745&action=review > > Please fix the gtk build before you land. I don't believe I broke it. The message is obscure. I'll post another patch and watch the bots to make sure. Also, you probably need to modify EditorAllInOne.cpp for Windows. Ok > > You should add simplifyMarkup() to CompositeEditCommand. I can do that in a later patch. > > > Source/WebCore/editing/SimplifyMarkupCommand.cpp:2 > > + * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. > > Maybe you should add 2011 here? Actually 2012! Good catch. Created attachment 135863 [details]
Patch to check builds
Created attachment 135865 [details]
One more
Created attachment 135886 [details]
Resolved conflict
|