Changeset 133562 in webkit
- Timestamp:
- Nov 5, 2012 10:41:29 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r133561 r133562 1 2012-11-05 Glenn Adams <glenn@skynav.com> 2 3 Ensure acquireLineBreakIterator signature consistency on non-ICU ports. 4 https://bugs.webkit.org/show_bug.cgi?id=101281 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix (newly) inconsistent signature for acquireLineBreakIterator for non-ICU ports 9 caused by http://trac.webkit.org/changeset/133529. 10 11 See new tests added from https://bugs.webkit.org/show_bug.cgi?id=89235. 12 13 * platform/text/TextBreakIterator.cpp: 14 (WebCore::acquireLineBreakIterator): 15 * platform/text/gtk/TextBreakIteratorGtk.cpp: 16 (WebCore::setUpIterator): 17 (WebCore::acquireLineBreakIterator): 18 * platform/text/wince/TextBreakIteratorWinCE.cpp: 19 (WebCore::acquireLineBreakIterator): 20 1 21 2012-11-05 Hayato Ito <hayato@chromium.org> 2 22 -
trunk/Source/WebCore/platform/text/TextBreakIterator.cpp
r129731 r133562 51 51 52 52 #if !USE(ICU_UNICODE) 53 TextBreakIterator* acquireLineBreakIterator(const LChar* string, int length, const AtomicString& locale )53 TextBreakIterator* acquireLineBreakIterator(const LChar* string, int length, const AtomicString& locale, LineBreakIteratorMode mode, bool isCJK) 54 54 { 55 55 Vector<UChar> utf16string(length); 56 56 for (int i = 0; i < length; ++i) 57 57 utf16string[i] = string[i]; 58 return acquireLineBreakIterator(utf16string.data(), length, locale );58 return acquireLineBreakIterator(utf16string.data(), length, locale, mode, isCJK); 59 59 } 60 60 #endif -
trunk/Source/WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp
r129305 r133562 195 195 196 196 static TextBreakIterator* setUpIterator(bool& createdIterator, TextBreakIterator*& iterator, 197 UBreakIteratorType type, const UChar* string, int length )197 UBreakIteratorType type, const UChar* string, int length, LineBreakIteratorMode, bool) 198 198 { 199 199 if (!string) … … 255 255 static TextBreakIterator* staticLineBreakIterator; 256 256 257 TextBreakIterator* acquireLineBreakIterator(const UChar* string, int length, const AtomicString& )257 TextBreakIterator* acquireLineBreakIterator(const UChar* string, int length, const AtomicString&, LineBreakIteratorMode mode, bool isCJK) 258 258 { 259 259 TextBreakIterator* lineBreakIterator = 0; 260 260 if (!createdLineBreakIterator || staticLineBreakIterator) { 261 setUpIterator(createdLineBreakIterator, staticLineBreakIterator, UBRK_LINE, string, length );261 setUpIterator(createdLineBreakIterator, staticLineBreakIterator, UBRK_LINE, string, length, mode, isCJK); 262 262 swap(staticLineBreakIterator, lineBreakIterator); 263 263 } … … 265 265 if (!lineBreakIterator) { 266 266 bool createdNewLineBreakIterator = false; 267 setUpIterator(createdNewLineBreakIterator, lineBreakIterator, UBRK_LINE, string, length );267 setUpIterator(createdNewLineBreakIterator, lineBreakIterator, UBRK_LINE, string, length, mode, isCJK); 268 268 } 269 269 -
trunk/Source/WebCore/platform/text/wince/TextBreakIteratorWinCE.cpp
r127757 r133562 257 257 static TextBreakIterator* staticLineBreakIterator; 258 258 259 TextBreakIterator* acquireLineBreakIterator(const UChar* string, int length, const AtomicString& )259 TextBreakIterator* acquireLineBreakIterator(const UChar* string, int length, const AtomicString&, LineBreakIteratorMode, bool) 260 260 { 261 261 TextBreakIterator* lineBreakIterator = 0;
Note: See TracChangeset
for help on using the changeset viewer.