summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/InsertLineBreakCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/InsertLineBreakCommand.cpp')
-rw-r--r--WebCore/editing/InsertLineBreakCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/InsertLineBreakCommand.cpp b/WebCore/editing/InsertLineBreakCommand.cpp
index dbe4b39..8ac1167 100644
--- a/WebCore/editing/InsertLineBreakCommand.cpp
+++ b/WebCore/editing/InsertLineBreakCommand.cpp
@@ -165,7 +165,7 @@ void InsertLineBreakCommand::doApply()
// Handle the case where there is a typing style.
- CSSMutableStyleDeclaration* typingStyle = document()->frame()->typingStyle();
+ CSSMutableStyleDeclaration* typingStyle = document()->frame()->selection()->typingStyle();
if (typingStyle && typingStyle->length() > 0) {
// Apply the typing style to the inserted line break, so that if the selection