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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-mi
crosyntaxes.html#space-character | 130 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-mi
crosyntaxes.html#space-character |
131 // This function returns true for 0x000B also, so that this is backward
compatible. | 131 // This function returns true for 0x000B also, so that this is backward
compatible. |
132 // Otherwise, the test LayoutTests/canvas/philip/tests/2d.text.draw.spac
e.collapse.space.html will fail | 132 // Otherwise, the test LayoutTests/canvas/philip/tests/2d.text.draw.spac
e.collapse.space.html will fail |
133 return c == 0x0009 || (c >= 0x000A && c <= 0x000D); | 133 return c == 0x0009 || (c >= 0x000A && c <= 0x000D); |
134 } | 134 } |
135 | 135 |
136 static String normalizeSpaces(const LChar*, unsigned length); | 136 static String normalizeSpaces(const LChar*, unsigned length); |
137 static String normalizeSpaces(const UChar*, unsigned length); | 137 static String normalizeSpaces(const UChar*, unsigned length); |
138 | 138 |
139 static bool isCommonOrInheritedScript(UChar32); | 139 static bool isCommonOrInheritedScript(UChar32); |
140 | |
141 private: | |
142 static bool hasProperty(UChar32, CharacterProperty); | |
143 }; | 140 }; |
144 | 141 |
145 } // namespace blink | 142 } // namespace blink |
146 | 143 |
147 #endif | 144 #endif |
OLD | NEW |