Changeset 71296 in webkit
- Timestamp:
- Nov 3, 2010 6:55:38 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r71291 r71296 1 2010-11-03 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 [GTK] Use sentence boundaries instead of start/end sentence 6 https://bugs.webkit.org/show_bug.cgi?id=48422 7 8 Using sentence boundaries all intersentence 9 whitespace/control/format characters are assigned to a 10 sentence. This is what ICU does, so we have to do the same in 11 order to get the same results with glib unicode backend. It fixes 12 the sentence tests cases in test fast/dom/Range/range-expand.html. 13 14 * platform/text/gtk/TextBreakIteratorGtk.cpp: 15 (WebCore::textBreakNext): 16 (WebCore::textBreakPrevious): 17 1 18 2010-11-03 Zhenyao Mo <zmo@google.com> 2 19 -
trunk/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp
r70881 r71296 301 301 || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end)) 302 302 || (iterator->m_type == UBRK_CHARACTER && iterator->m_logAttrs[index].is_cursor_position) 303 || (iterator->m_type == UBRK_SENTENCE && (iterator->m_logAttrs[index].is_sentence_start || iterator->m_logAttrs[index].is_sentence_end))) {303 || (iterator->m_type == UBRK_SENTENCE && iterator->m_logAttrs[index].is_sentence_boundary)) { 304 304 break; 305 305 } … … 316 316 || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end)) 317 317 || (iterator->m_type == UBRK_CHARACTER && iterator->m_logAttrs[index].is_cursor_position) 318 || (iterator->m_type == UBRK_SENTENCE && (iterator->m_logAttrs[index].is_sentence_start || iterator->m_logAttrs[index].is_sentence_end))) {318 || (iterator->m_type == UBRK_SENTENCE && iterator->m_logAttrs[index].is_sentence_boundary)) { 319 319 break; 320 320 }
Note: See TracChangeset
for help on using the changeset viewer.