Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/Character.h

Issue 1525993005: Change CachingWordShapeIterator to delimit CJK characters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canva s-element.html#text-preparation-algorithm 117 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canva s-element.html#text-preparation-algorithm
118 // The space characters according to specification are : U+0020, U+0009, U+000A, U+000C, and U+000D. 118 // The space characters according to specification are : U+0020, U+0009, U+000A, U+000C, and U+000D.
119 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-mi crosyntaxes.html#space-character 119 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-mi crosyntaxes.html#space-character
120 // This function returns true for 0x000B also, so that this is backward compatible. 120 // This function returns true for 0x000B also, so that this is backward compatible.
121 // Otherwise, the test LayoutTests/canvas/philip/tests/2d.text.draw.spac e.collapse.space.html will fail 121 // Otherwise, the test LayoutTests/canvas/philip/tests/2d.text.draw.spac e.collapse.space.html will fail
122 return c == 0x0009 || (c >= 0x000A && c <= 0x000D); 122 return c == 0x0009 || (c >= 0x000A && c <= 0x000D);
123 } 123 }
124 124
125 static String normalizeSpaces(const LChar*, unsigned length); 125 static String normalizeSpaces(const LChar*, unsigned length);
126 static String normalizeSpaces(const UChar*, unsigned length); 126 static String normalizeSpaces(const UChar*, unsigned length);
127
128 static bool isCommonOrInheritedScript(UChar32);
127 }; 129 };
128 130
129 } // namespace blink 131 } // namespace blink
130 132
131 #endif 133 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/platform/fonts/Character.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698