Home | History | Annotate | Download | only in editing

Lines Matching refs:rangeToBeReplaced

105         m_correctionPanelInfo.rangeToBeReplaced.clear();
113 m_correctionPanelInfo.rangeToBeReplaced.clear();
141 m_correctionPanelInfo.rangeToBeReplaced.clear();
146 return m_correctionPanelInfo.rangeToBeReplaced;
160 m_correctionPanelInfo.rangeToBeReplaced = rangeToReplace;
197 if (!m_correctionPanelInfo.rangeToBeReplaced)
201 RefPtr<Range> paragraphRangeContainingCorrection = m_correctionPanelInfo.rangeToBeReplaced->cloneRange(ec);
205 setStart(paragraphRangeContainingCorrection.get(), startOfParagraph(m_correctionPanelInfo.rangeToBeReplaced->startPosition()));
206 setEnd(paragraphRangeContainingCorrection.get(), endOfParagraph(m_correctionPanelInfo.rangeToBeReplaced->endPosition()));
208 // After we replace the word at range rangeToBeReplaced, we need to add markers to that range.
209 // However, once the replacement took place, the value of rangeToBeReplaced is not valid anymore.
210 // So before we carry out the replacement, we need to store the start position of rangeToBeReplaced
213 // which spans from the start of paragraph to the start position of rangeToBeReplaced.
218 Position startPositionOfRangeToBeReplaced = m_correctionPanelInfo.rangeToBeReplaced->startPosition();
227 RefPtr<Range> rangeToBeReplaced = m_correctionPanelInfo.rangeToBeReplaced->cloneRange(ec);
228 applyCommand(SpellingCorrectionCommand::create(rangeToBeReplaced, m_correctionPanelInfo.replacementString));
250 if (!m_correctionPanelInfo.rangeToBeReplaced || !m_correctionPanelInfo.isActive)
258 if (m_correctionPanelInfo.rangeToBeReplaced->endPosition() == caretPosition) {
264 ASSERT(m_correctionPanelInfo.rangeToBeReplaced->endPosition() == caretPosition);
296 m_correctionPanelInfo.replacedString = plainText(m_correctionPanelInfo.rangeToBeReplaced.get());
297 FloatRect boundingBox = windowRectForRange(m_correctionPanelInfo.rangeToBeReplaced.get());
303 if (plainText(m_correctionPanelInfo.rangeToBeReplaced.get()) != m_correctionPanelInfo.replacedString)
305 String paragraphText = plainText(TextCheckingParagraph(m_correctionPanelInfo.rangeToBeReplaced).paragraphRange().get());
309 m_correctionPanelInfo.rangeToBeReplaced.clear();
315 FloatRect boundingBox = windowRectForRange(m_correctionPanelInfo.rangeToBeReplaced.get());
325 Range* replacedRange = m_correctionPanelInfo.rangeToBeReplaced.get();
329 String currentWord = plainText(m_correctionPanelInfo.rangeToBeReplaced.get());
353 m_correctionPanelInfo.rangeToBeReplaced.clear();
399 m_correctionPanelInfo.rangeToBeReplaced = wordRange;