Changeset 70071 in webkit
- Timestamp:
- Oct 19, 2010 11:30:00 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 24 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70063 r70071 1 2010-10-19 Jia Pu <jpu@apple.com> 2 3 Reviewed by Adele Peterson. 4 5 Moving cursor back to autocorrected word in the same line shouldn't remove the underline 6 https://bugs.webkit.org/show_bug.cgi?id=47629 7 <rdar://problem/8546758> 8 9 * platform/mac-leopard/Skipped: New tests don't apply to this Mac OSX version. 10 * platform/mac-snowleopard/Skipped: Ditto. 11 * platform/mac-tiger/Skipped: Ditto. 12 * platform/mac-wk2/Skipped: Ditto. 13 * platform/mac/editing/spelling/autocorrection-delete-expected.checksum: 14 * platform/mac/editing/spelling/autocorrection-delete-expected.png: 15 * platform/mac/editing/spelling/click-autocorrected-word-expected.checksum: Added. 16 * platform/mac/editing/spelling/click-autocorrected-word-expected.png: Added. 17 * platform/mac/editing/spelling/click-autocorrected-word-expected.txt: Added. 18 * platform/mac/editing/spelling/click-autocorrected-word.html: Added. 19 * platform/mac/editing/spelling/delete-into-autocorrected-word-expected.checksum: Added. 20 * platform/mac/editing/spelling/delete-into-autocorrected-word-expected.png: Added. 21 * platform/mac/editing/spelling/delete-into-autocorrected-word-expected.txt: Added. 22 * platform/mac/editing/spelling/delete-into-autocorrected-word.html: Added. 23 * platform/mac/editing/spelling/delete-into-misspelled-word-expected.txt: Added. 24 * platform/mac/editing/spelling/delete-into-misspelled-word.html: Added. 25 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.checksum: Added. 26 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.png: Added. 27 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word-expected.txt: Added. 28 * platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html: Added. 29 * platform/mac/editing/spelling/move-cursor-around-misspelled-word-expected.txt: Added. 30 * platform/mac/editing/spelling/move-cursor-around-misspelled-word.html: Added. 31 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.checksum: Added. 32 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.png: Added. 33 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word-expected.txt: Added. 34 * platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html: Added. 35 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.checksum: Added. 36 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.png: Added. 37 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word-expected.txt: Added. 38 * platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html: Added. 39 1 40 2010-10-19 Eric Carlson <eric.carlson@apple.com> 2 41 -
trunk/LayoutTests/platform/mac-leopard/Skipped
r69351 r70071 100 100 platform/mac/editing/spelling/autocorrection-removing-underline.html 101 101 platform/mac/editing/spelling/autocorrection-simple.html 102 platform/mac/editing/spelling/click-autocorrected-word.html 103 platform/mac/editing/spelling/delete-into-autocorrected-word.html 104 platform/mac/editing/spelling/delete-into-misspelled-word.html 105 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 106 platform/mac/editing/spelling/move-cursor-around-misspelled-word.html 107 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 108 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html -
trunk/LayoutTests/platform/mac-snowleopard/Skipped
r69351 r70071 135 135 platform/mac/editing/spelling/autocorrection-removing-underline.html 136 136 platform/mac/editing/spelling/autocorrection-simple.html 137 platform/mac/editing/spelling/click-autocorrected-word.html 138 platform/mac/editing/spelling/delete-into-autocorrected-word.html 139 platform/mac/editing/spelling/delete-into-misspelled-word.html 140 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 141 platform/mac/editing/spelling/move-cursor-around-misspelled-word.html 142 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 143 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html -
trunk/LayoutTests/platform/mac-tiger/Skipped
r69750 r70071 210 210 platform/mac/editing/spelling/autocorrection-removing-underline.html 211 211 platform/mac/editing/spelling/autocorrection-simple.html 212 platform/mac/editing/spelling/click-autocorrected-word.html 213 platform/mac/editing/spelling/delete-into-autocorrected-word.html 214 platform/mac/editing/spelling/delete-into-misspelled-word.html 215 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 216 platform/mac/editing/spelling/move-cursor-around-misspelled-word.html 217 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 218 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html -
trunk/LayoutTests/platform/mac-wk2/Skipped
r69747 r70071 517 517 platform/mac/editing/spelling/autocorrection-removing-underline.html 518 518 platform/mac/editing/spelling/autocorrection-simple.html 519 platform/mac/editing/spelling/click-autocorrected-word.html 520 platform/mac/editing/spelling/delete-into-autocorrected-word.html 521 platform/mac/editing/spelling/delete-into-misspelled-word.html 522 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 523 platform/mac/editing/spelling/move-cursor-around-misspelled-word.html 524 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 525 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html 519 526 platform/mac/fast/forms/input-appearance-spinbutton-up.html 520 527 platform/mac/fast/forms/input-number-click.html -
trunk/LayoutTests/platform/mac/editing/spelling/autocorrection-delete-expected.checksum
r69269 r70071 1 39685c692f4697ce0b957e38a07a23571 a7f7bb68b8cb6b37695a4e7b4f69a847 -
trunk/WebCore/ChangeLog
r70065 r70071 1 2010-10-19 Jia Pu <jpu@apple.com> 2 3 Reviewed by Adele Peterson. 4 5 Moving cursor back to autocorrected word in the same line shouldn't remove the underline 6 https://bugs.webkit.org/show_bug.cgi?id=47629 7 <rdar://problem/8546758> 8 9 Tests: platform/mac/editing/spelling/click-autocorrected-word.html 10 platform/mac/editing/spelling/delete-into-autocorrected-word.html 11 platform/mac/editing/spelling/delete-into-misspelled-word.html 12 platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html 13 platform/mac/editing/spelling/move-cursor-around-misspelled-word.html 14 platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html 15 platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html 16 17 * editing/Editor.cpp: 18 (WebCore::Editor::respondToChangedSelection): Don't remove misspelling or autocorrection 19 underlines when cursor is moved onto a word. 20 1 21 2010-10-19 Eric Carlson <eric.carlson@apple.com> 2 22 -
trunk/WebCore/editing/Editor.cpp
r69876 r70071 3610 3610 } 3611 3611 3612 #if PLATFORM(MAC) && (defined(BUILDING_ON_TIGER) || defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)) 3612 3613 // This only erases markers that are in the first unit (word or sentence) of the selection. 3613 // Perhaps peculiar, but it matches AppKit .3614 if (RefPtr<Range> wordRange = newAdjacentWords.toNormalizedRange()) {3614 // Perhaps peculiar, but it matches AppKit on these Mac OSX versions. 3615 if (RefPtr<Range> wordRange = newAdjacentWords.toNormalizedRange()) 3615 3616 m_frame->document()->markers()->removeMarkers(wordRange.get(), DocumentMarker::Spelling); 3616 m_frame->document()->markers()->removeMarkers(wordRange.get(), DocumentMarker::CorrectionIndicator); 3617 } 3617 #endif 3618 3618 if (RefPtr<Range> sentenceRange = newSelectedSentence.toNormalizedRange()) 3619 3619 m_frame->document()->markers()->removeMarkers(sentenceRange.get(), DocumentMarker::Grammar);
Note: See TracChangeset
for help on using the changeset viewer.