summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/InsertTextCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/InsertTextCommand.cpp')
-rw-r--r--WebCore/editing/InsertTextCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/InsertTextCommand.cpp b/WebCore/editing/InsertTextCommand.cpp
index cfaf219..b6c8236 100644
--- a/WebCore/editing/InsertTextCommand.cpp
+++ b/WebCore/editing/InsertTextCommand.cpp
@@ -190,7 +190,7 @@ void InsertTextCommand::input(const String& text, bool selectInsertedText)
setEndingSelection(forcedEndingSelection);
// Handle the case where there is a typing style.
- CSSMutableStyleDeclaration* typingStyle = document()->frame()->typingStyle();
+ CSSMutableStyleDeclaration* typingStyle = document()->frame()->selection()->typingStyle();
RefPtr<CSSComputedStyleDeclaration> endingStyle = endPosition.computedStyle();
RefPtr<CSSValue> unicodeBidi;
RefPtr<CSSValue> direction;