Changeset 69841 in webkit


Ignore:
Timestamp:
Oct 14, 2010 11:52:54 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

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

Reviewed by Adele Peterson.

REGRESSION (r69548): Autocorrections are applied even after typing further characters in the word
https://bugs.webkit.org/show_bug.cgi?id=47689
<rdar://problem/8552250>

The test requires using setTimeout(). So we put it in manual-tests.

  • editing/Editor.cpp: (WebCore::Editor::markMisspellingsAfterTypingToPosition): Relpace release() with clear(). (WebCore::Editor::startCorrectionPanelTimer): Release previously set correction range before start timer for next autocorrection check.
  • manual-tests/autocorrection: Added.
  • manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Added.
Location:
trunk/WebCore
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69836 r69841  
     12010-10-14  Jia Pu  <jpu@apple.com>
     2
     3        Reviewed by Adele Peterson.
     4
     5        REGRESSION (r69548): Autocorrections are applied even after typing further characters in the word
     6        https://bugs.webkit.org/show_bug.cgi?id=47689
     7        <rdar://problem/8552250>
     8
     9        The test requires using setTimeout(). So we put it in manual-tests.
     10
     11        * editing/Editor.cpp:
     12        (WebCore::Editor::markMisspellingsAfterTypingToPosition): Relpace release() with clear().
     13        (WebCore::Editor::startCorrectionPanelTimer): Release previously set correction range before
     14          start timer for next autocorrection check.
     15        * manual-tests/autocorrection: Added.
     16        * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Added.
     17
    1182010-10-14  Ryosuke Niwa  <rniwa@webkit.org>
    219
  • trunk/WebCore/editing/Editor.cpp

    r69831 r69841  
    24482448            }
    24492449        }
    2450         m_rangeToBeReplacedByCorrection.release();
     2450        m_rangeToBeReplacedByCorrection.clear();
    24512451    }
    24522452#endif
     
    29022902#if PLATFORM(MAC) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
    29032903    static const double correctionPanelTimerInterval = 0.3;
    2904     if (isAutomaticSpellingCorrectionEnabled())
     2904    if (isAutomaticSpellingCorrectionEnabled()) {
     2905        m_rangeToBeReplacedByCorrection.clear();
    29052906        m_correctionPanelTimer.startOneShot(correctionPanelTimerInterval);
     2907    }
    29062908#endif
    29072909}
Note: See TracChangeset for help on using the changeset viewer.