Changeset 163258 in webkit
- Timestamp:
- Feb 1, 2014 10:38:18 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r163257 r163258 1 2014-02-01 Darin Adler <darin@apple.com> 2 3 More characters -> deprecatedCharacters (based on more EWS complaints) 4 https://bugs.webkit.org/show_bug.cgi?id=128063 5 6 Reviewed by Anders Carlsson. 7 8 * editing/SmartReplace.cpp: 9 (WebCore::addAllCodePoints): 10 (WebCore::getSmartSet): 11 * platform/win/WebCoreTextRenderer.cpp: 12 (WebCore::doDrawTextAtPoint): 13 Use deprecatedCharacters. 14 1 15 2014-02-01 Darin Adler <darin@apple.com> 2 16 -
trunk/Source/WebCore/editing/SmartReplace.cpp
r162782 r163258 41 41 static void addAllCodePoints(USet* smartSet, const String& string) 42 42 { 43 const UChar* characters = string. characters();43 const UChar* characters = string.deprecatedCharacters(); 44 44 for (size_t i = 0; i < string.length(); i++) 45 45 uset_add(smartSet, characters[i]); … … 57 57 UErrorCode ec = U_ZERO_ERROR; 58 58 String whitespaceAndNewline = ASCIILiteral("[[:WSpace:] [\\u000A\\u000B\\u000C\\u000D\\u0085]]"); 59 smartSet = uset_openPattern(whitespaceAndNewline. characters(), whitespaceAndNewline.length(), &ec);59 smartSet = uset_openPattern(whitespaceAndNewline.deprecatedCharacters(), whitespaceAndNewline.length(), &ec); 60 60 ASSERT(U_SUCCESS(ec)); 61 61 … … 84 84 UErrorCode ec = U_ZERO_ERROR; 85 85 String punctuationClass = ASCIILiteral("[:P:]"); 86 USet* icuPunct = uset_openPattern(punctuationClass. characters(), punctuationClass.length(), &ec);86 USet* icuPunct = uset_openPattern(punctuationClass.deprecatedCharacters(), punctuationClass.length(), &ec); 87 87 ASSERT(U_SUCCESS(ec)); 88 88 uset_addAll(smartSet, icuPunct); -
trunk/Source/WebCore/platform/win/WebCoreTextRenderer.cpp
r158309 r163258 52 52 FontCachePurgePreventer fontCachePurgePreventer; 53 53 54 TextRun run(text. characters(), text.length());54 TextRun run(text.deprecatedCharacters(), text.length()); 55 55 56 56 context.setFillColor(color, ColorSpaceDeviceRGB); … … 65 65 int beforeWidth; 66 66 if (underlinedIndex > 0) { 67 TextRun beforeRun(text. characters(), underlinedIndex);67 TextRun beforeRun(text.deprecatedCharacters(), underlinedIndex); 68 68 beforeWidth = font.width(beforeRun); 69 69 } else 70 70 beforeWidth = 0; 71 71 72 TextRun underlinedRun(text. characters() + underlinedIndex, 1);72 TextRun underlinedRun(text.deprecatedCharacters() + underlinedIndex, 1); 73 73 int underlinedWidth = font.width(underlinedRun); 74 74 -
trunk/Source/WebKit2/ChangeLog
r163256 r163258 1 2014-02-01 Darin Adler <darin@apple.com> 2 3 More characters -> deprecatedCharacters (based on more EWS complaints) 4 https://bugs.webkit.org/show_bug.cgi?id=128063 5 6 Reviewed by Anders Carlsson. 7 8 * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp: 9 (WebKit::truncateToSingleLine): Use deprecatedCharacters. 10 1 11 2014-02-01 Enrica Casucci <enrica@apple.com> 2 12 -
trunk/Source/WebKit2/Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
r139600 r163258 166 166 167 167 unsigned newLength = 0; 168 const UChar* start = string. characters();168 const UChar* start = string.deprecatedCharacters(); 169 169 for (const UChar* c = start; c < start + oldLength; ++c) { 170 170 if (*c != UChar('\n'))
Note: See TracChangeset
for help on using the changeset viewer.