Changeset 71296 in webkit


Ignore:
Timestamp:
Nov 3, 2010 6:55:38 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-03 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] Use sentence boundaries instead of start/end sentence
https://bugs.webkit.org/show_bug.cgi?id=48422

Using sentence boundaries all intersentence
whitespace/control/format characters are assigned to a
sentence. This is what ICU does, so we have to do the same in
order to get the same results with glib unicode backend. It fixes
the sentence tests cases in test fast/dom/Range/range-expand.html.

  • platform/text/gtk/TextBreakIteratorGtk.cpp: (WebCore::textBreakNext): (WebCore::textBreakPrevious):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71291 r71296  
     12010-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
    1182010-11-03  Zhenyao Mo  <zmo@google.com>
    219
  • trunk/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp

    r70881 r71296  
    301301            || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end))
    302302            || (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)) {
    304304            break;
    305305        }
     
    316316            || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end))
    317317            || (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)) {
    319319            break;
    320320        }
Note: See TracChangeset for help on using the changeset viewer.