OLD | NEW |
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 Loading... |
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 |
OLD | NEW |