Changeset 155014 in webkit
- Timestamp:
- Sep 3, 2013 6:13:08 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r155012 r155014 1 2013-09-03 Enrica Casucci <enrica@apple.com> 2 3 Can't select Katakana word by double-clicking. 4 <rdar://problem/14654926> 5 6 Reviewed by Alexey Proskuryakov and Ryosuke Niwa. 7 8 Added new test for this scenario. 9 10 * editing/selection/doubleclick-japanese-text-expected.txt: Added. 11 * editing/selection/doubleclick-japanese-text.html: Added. 12 1 13 2013-09-03 Benjamin Poulain <benjamin@webkit.org> 2 14 -
trunk/Source/WTF/ChangeLog
r154997 r155014 1 2013-09-03 Enrica Casucci <enrica@apple.com> 2 3 Can't select Katakana word by double-clicking. 4 <rdar://problem/14654926> 5 6 Reviewed by Alexey Proskuryakov and Ryosuke Niwa. 7 8 For some languages, like Japanese we need 9 to use more context for word breaking. 10 I've renamed the function to better reflect its use 11 and remove the unused hasLineBreakingPropertyComplexContextOrIdeographic. 12 13 * wtf/unicode/icu/UnicodeIcu.h: 14 (WTF::Unicode::requiresComplexContextForWordBreaking): 15 1 16 2013-09-03 Andreas Kling <akling@apple.com> 2 17 -
trunk/Source/WTF/wtf/unicode/icu/UnicodeIcu.h
r154294 r155014 189 189 } 190 190 191 inline bool hasLineBreakingPropertyComplexContext(UChar32 c) 192 { 193 return u_getIntPropertyValue(c, UCHAR_LINE_BREAK) == U_LB_COMPLEX_CONTEXT; 194 } 195 196 inline bool hasLineBreakingPropertyComplexContextOrIdeographic(UChar32 c) 191 #define WK_LB_CONDITIONAL_JAPANESE_STARTER 37 192 193 inline bool requiresComplexContextForWordBreaking(UChar32 c) 197 194 { 198 195 int32_t prop = u_getIntPropertyValue(c, UCHAR_LINE_BREAK); 199 return prop == U_LB_COMPLEX_CONTEXT || prop == U_LB_IDEOGRAPHIC;196 return prop == U_LB_COMPLEX_CONTEXT || prop == WK_LB_CONDITIONAL_JAPANESE_STARTER || prop == U_LB_IDEOGRAPHIC; 200 197 } 201 198 -
trunk/Source/WebCore/ChangeLog
r155013 r155014 1 2013-09-03 Enrica Casucci <enrica@apple.com> 2 3 Can't select Katakana word by double-clicking. 4 <rdar://problem/14654926> 5 6 Reviewed by Alexey Proskuryakov and Ryosuke Niwa. 7 8 For some languages, like Japanese we need 9 to use more context for word breaking. 10 11 New test: editing/selection/doubleclick-japanese-text.html 12 13 * platform/text/TextBoundaries.h: 14 (WebCore::requiresContextForWordBoundary): 15 1 16 2013-09-03 Mark Lam <mark.lam@apple.com> 2 17 -
trunk/Source/WebCore/platform/text/TextBoundaries.h
r72887 r155014 31 31 namespace WebCore { 32 32 33 // FIXME: this function won't be needed together with the function 34 // it calls when https://bugs.webkit.org/show_bug.cgi?id=120656 35 // will be fixed. 33 36 inline bool requiresContextForWordBoundary(UChar32 ch) 34 37 { 35 return WTF::Unicode:: hasLineBreakingPropertyComplexContext(ch);38 return WTF::Unicode::requiresComplexContextForWordBreaking(ch); 36 39 } 37 40
Note: See TracChangeset
for help on using the changeset viewer.