summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/RemoveFormatCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/RemoveFormatCommand.cpp')
-rw-r--r--WebCore/editing/RemoveFormatCommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/editing/RemoveFormatCommand.cpp b/WebCore/editing/RemoveFormatCommand.cpp
index 80e0ee7..609ab0e 100644
--- a/WebCore/editing/RemoveFormatCommand.cpp
+++ b/WebCore/editing/RemoveFormatCommand.cpp
@@ -30,7 +30,7 @@
#include "Editor.h"
#include "Frame.h"
#include "HTMLNames.h"
-#include "Selection.h"
+#include "VisibleSelection.h"
#include "SelectionController.h"
#include "TextIterator.h"
#include "TypingCommand.h"
@@ -49,7 +49,7 @@ void RemoveFormatCommand::doApply()
Frame* frame = document()->frame();
// Make a plain text string from the selection to remove formatting like tables and lists.
- String string = plainText(frame->selection()->selection().toRange().get());
+ String string = plainText(frame->selection()->selection().toNormalizedRange().get());
// Get the default style for this editable root, it's the style that we'll give the
// content that we're operating on.