[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373
eric at webkit.org
eric at webkit.org
Wed Apr 7 23:26:16 UTC 2010
The following commit has been merged in the webkit-1.2 branch:
commit e4de7386ee7e05bc09254e41770d41d2924c8072
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Nov 9 08:18:03 2009 +0000
2009-11-09 Joanmarie Diggs <joanmarie.diggs at gmail.com>
Reviewed by Xan Lopez.
https://bugs.webkit.org/show_bug.cgi?id=25415
[GTK][ATK] Please implement support for get_text_at_offset
Fix a crasher that occurred with text which included newline
chars in the markup.
* accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
(convertUniCharToUTF8):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index cfb7563..f02b587 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2009-11-09 Joanmarie Diggs <joanmarie.diggs at gmail.com>
+
+ Reviewed by Xan Lopez.
+
+ https://bugs.webkit.org/show_bug.cgi?id=25415
+ [GTK][ATK] Please implement support for get_text_at_offset
+
+ Fix a crasher that occurred with text which included newline
+ chars in the markup.
+
+ * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
+ (convertUniCharToUTF8):
+
2009-11-05 Jakub Wieczorek <faw217 at gmail.com>
Reviewed by Holger Freyther.
diff --git a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
index 338a03c..67fd29d 100644
--- a/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
+++ b/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
@@ -846,17 +846,18 @@ static gchar* convertUniCharToUTF8(const UChar* characters, gint length, int fro
}
gsize len = strlen(utf8String);
GString* ret = g_string_new_len(NULL, len);
+ gchar* ptr = utf8String;
// WebCore introduces line breaks in the text that do not reflect
// the layout you see on the screen, replace them with spaces
while (len > 0) {
gint index, start;
- pango_find_paragraph_boundary(utf8String, len, &index, &start);
- g_string_append_len(ret, utf8String, index);
+ pango_find_paragraph_boundary(ptr, len, &index, &start);
+ g_string_append_len(ret, ptr, index);
if (index == start)
break;
g_string_append_c(ret, ' ');
- utf8String += start;
+ ptr += start;
len -= start;
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list