Changeset 68902 in webkit


Ignore:
Timestamp:
Oct 1, 2010 11:11:24 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-01 Jia Pu <jpu@apple.com>

Reviewed by Darin Adler.

Autocorrection shouldn't prompt the same correction after user has edited previous correction.
https://bugs.webkit.org/show_bug.cgi?id=46839
<rdar://problem/8476963>

  • editing/Editor.cpp: (WebCore::Editor::respondToChangedSelection): Remove "CorrectionIndicator" marker instead of "Replacement" marker. Since the former controls whether we draw autocorrection underline, and the latter is used to prevent autocorrection from being applied again on already auto- corrected word. So the "Replacement" shouldn't be removed.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r68901 r68902  
     12010-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
    1152010-10-01  Patrick Gansterer  <paroga@webkit.org>
    216
  • trunk/WebCore/editing/Editor.cpp

    r68817 r68902  
    36013601        if (RefPtr<Range> wordRange = newAdjacentWords.toNormalizedRange()) {
    36023602            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);
    36043604        }
    36053605        if (RefPtr<Range> sentenceRange = newSelectedSentence.toNormalizedRange())
Note: See TracChangeset for help on using the changeset viewer.