[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 15:27:49 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit da6e18fb7c8564dbe4fbadecc13620220e051740
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Nov 4 01:55:38 2010 +0000

    2010-11-03  Carlos Garcia Campos  <cgarcia at 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):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71296 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 15009f4..9f93846 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-11-03  Carlos Garcia Campos  <cgarcia at 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):
+
 2010-11-03  Zhenyao Mo  <zmo at google.com>
 
         Reviewed by Kenneth Russell.
diff --git a/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp b/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp
index be3f302..990e331 100644
--- a/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp
+++ b/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp
@@ -300,7 +300,7 @@ int textBreakNext(TextBreakIterator* iterator)
         if ((iterator->m_type == UBRK_LINE && iterator->m_logAttrs[index].is_line_break)
             || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end))
             || (iterator->m_type == UBRK_CHARACTER && iterator->m_logAttrs[index].is_cursor_position)
-            || (iterator->m_type == UBRK_SENTENCE && (iterator->m_logAttrs[index].is_sentence_start || iterator->m_logAttrs[index].is_sentence_end)) ) {
+            || (iterator->m_type == UBRK_SENTENCE && iterator->m_logAttrs[index].is_sentence_boundary)) {
             break;
         }
     }
@@ -315,7 +315,7 @@ int textBreakPrevious(TextBreakIterator* iterator)
         if ((iterator->m_type == UBRK_LINE && iterator->m_logAttrs[index].is_line_break)
             || (iterator->m_type == UBRK_WORD && (iterator->m_logAttrs[index].is_word_start || iterator->m_logAttrs[index].is_word_end))
             || (iterator->m_type == UBRK_CHARACTER && iterator->m_logAttrs[index].is_cursor_position)
-            || (iterator->m_type == UBRK_SENTENCE && (iterator->m_logAttrs[index].is_sentence_start || iterator->m_logAttrs[index].is_sentence_end)) ) {
+            || (iterator->m_type == UBRK_SENTENCE && iterator->m_logAttrs[index].is_sentence_boundary)) {
             break;
         }
     }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list