Changeset 69841 in webkit
- Timestamp:
- Oct 14, 2010 11:52:54 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r69836 r69841 1 2010-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 1 18 2010-10-14 Ryosuke Niwa <rniwa@webkit.org> 2 19 -
trunk/WebCore/editing/Editor.cpp
r69831 r69841 2448 2448 } 2449 2449 } 2450 m_rangeToBeReplacedByCorrection. release();2450 m_rangeToBeReplacedByCorrection.clear(); 2451 2451 } 2452 2452 #endif … … 2902 2902 #if PLATFORM(MAC) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 2903 2903 static const double correctionPanelTimerInterval = 0.3; 2904 if (isAutomaticSpellingCorrectionEnabled()) 2904 if (isAutomaticSpellingCorrectionEnabled()) { 2905 m_rangeToBeReplacedByCorrection.clear(); 2905 2906 m_correctionPanelTimer.startOneShot(correctionPanelTimerInterval); 2907 } 2906 2908 #endif 2907 2909 }
Note: See TracChangeset
for help on using the changeset viewer.