Changeset 68902 in webkit
- Timestamp:
- Oct 1, 2010 11:11:24 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r68901 r68902 1 2010-10-01 Jia Pu <jpu@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Autocorrection shouldn't prompt the same correction after user has edited previous correction. 6 https://bugs.webkit.org/show_bug.cgi?id=46839 7 <rdar://problem/8476963> 8 9 * editing/Editor.cpp: 10 (WebCore::Editor::respondToChangedSelection): Remove "CorrectionIndicator" marker instead of 11 "Replacement" marker. Since the former controls whether we draw autocorrection underline, 12 and the latter is used to prevent autocorrection from being applied again on already auto- 13 corrected word. So the "Replacement" shouldn't be removed. 14 1 15 2010-10-01 Patrick Gansterer <paroga@webkit.org> 2 16 -
trunk/WebCore/editing/Editor.cpp
r68817 r68902 3601 3601 if (RefPtr<Range> wordRange = newAdjacentWords.toNormalizedRange()) { 3602 3602 m_frame->document()->markers()->removeMarkers(wordRange.get(), DocumentMarker::Spelling); 3603 m_frame->document()->markers()->removeMarkers(wordRange.get(), DocumentMarker:: Replacement);3603 m_frame->document()->markers()->removeMarkers(wordRange.get(), DocumentMarker::CorrectionIndicator); 3604 3604 } 3605 3605 if (RefPtr<Range> sentenceRange = newSelectedSentence.toNormalizedRange())
Note: See TracChangeset
for help on using the changeset viewer.