Index: Source/core/editing/SpellingCorrectionCommand.cpp |
diff --git a/Source/core/editing/SpellingCorrectionCommand.cpp b/Source/core/editing/SpellingCorrectionCommand.cpp |
index 282f70bb2647397129c646335874d0fb31bb589a..0ee583219c991ea6c10ee3308a3535d16054f146 100644 |
--- a/Source/core/editing/SpellingCorrectionCommand.cpp |
+++ b/Source/core/editing/SpellingCorrectionCommand.cpp |
@@ -35,7 +35,7 @@ |
namespace WebCore { |
SpellingCorrectionCommand::SpellingCorrectionCommand(PassRefPtr<Range> rangeToBeCorrected, const String& correction) |
- : CompositeEditCommand(&rangeToBeCorrected->startContainer()->document()) |
+ : CompositeEditCommand(rangeToBeCorrected->startContainer()->document()) |
, m_rangeToBeCorrected(rangeToBeCorrected) |
, m_selectionToBeCorrected(m_rangeToBeCorrected.get()) |
, m_correction(correction) |
@@ -48,7 +48,7 @@ void SpellingCorrectionCommand::doApply() |
if (!m_corrected.length()) |
return; |
- if (!document()->frame()->selection()->shouldChangeSelection(m_selectionToBeCorrected)) |
+ if (!document().frame()->selection()->shouldChangeSelection(m_selectionToBeCorrected)) |
return; |
applyCommandToComposite(SetSelectionCommand::create(m_selectionToBeCorrected, FrameSelection::SpellCorrectionTriggered | FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle)); |