LayoutTests:
[WebKit-https.git] / WebCore / editing / JSEditor.cpp
index a4e91d1659656fb7357df08ba983d07420771b12..424d31bd9a983d045bc5826e20dba2f20b4809b1 100644 (file)
@@ -413,9 +413,7 @@ bool execRedo(Frame* frame, bool, const String&)
 
 bool execRemoveFormat(Frame* frame, bool userInterface, const String& value)
 {
-    applyCommand(new ReplaceSelectionCommand(frame->document(),
-        createFragmentFromText(frame->selectionController()->toRange().get(), frame->selectionController()->toString()),
-        false, false, false, true, EditActionUnspecified));
+    frame->editor()->removeFormattingAndStyle();
     return true;
 }