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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify); | 73 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify); |
74 static unsigned expansionOpportunityCount(const TextRun& run, bool& isAfterE xpansion) | 74 static unsigned expansionOpportunityCount(const TextRun& run, bool& isAfterE xpansion) |
75 { | 75 { |
76 if (run.is8Bit()) | 76 if (run.is8Bit()) |
77 return expansionOpportunityCount(run.characters8(), run.length(), ru n.direction(), isAfterExpansion, run.getTextJustify()); | 77 return expansionOpportunityCount(run.characters8(), run.length(), ru n.direction(), isAfterExpansion, run.getTextJustify()); |
78 return expansionOpportunityCount(run.characters16(), run.length(), run.d irection(), isAfterExpansion, run.getTextJustify()); | 78 return expansionOpportunityCount(run.characters16(), run.length(), run.d irection(), isAfterExpansion, run.getTextJustify()); |
79 } | 79 } |
80 | 80 |
81 static bool isUprightInMixedVertical(UChar32 character); | 81 static bool isUprightInMixedVertical(UChar32 character); |
82 | 82 |
83 static bool isPotentialCustomElementNameChar(UChar32 character); | |
dominicc (has gone to gerrit)
2016/04/27 01:42:14
This might be a good place to put a link to the sp
kojii
2016/04/27 03:52:13
Done.
| |
84 | |
83 static bool treatAsSpace(UChar32 c) | 85 static bool treatAsSpace(UChar32 c) |
84 { | 86 { |
85 return c == spaceCharacter | 87 return c == spaceCharacter |
86 || c == tabulationCharacter | 88 || c == tabulationCharacter |
87 || c == newlineCharacter | 89 || c == newlineCharacter |
88 || c == noBreakSpaceCharacter; | 90 || c == noBreakSpaceCharacter; |
89 } | 91 } |
90 static bool treatAsZeroWidthSpace(UChar32 c) | 92 static bool treatAsZeroWidthSpace(UChar32 c) |
91 { | 93 { |
92 return treatAsZeroWidthSpaceInComplexScript(c) | 94 return treatAsZeroWidthSpaceInComplexScript(c) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 | 154 |
153 static String normalizeSpaces(const LChar*, unsigned length); | 155 static String normalizeSpaces(const LChar*, unsigned length); |
154 static String normalizeSpaces(const UChar*, unsigned length); | 156 static String normalizeSpaces(const UChar*, unsigned length); |
155 | 157 |
156 static bool isCommonOrInheritedScript(UChar32); | 158 static bool isCommonOrInheritedScript(UChar32); |
157 }; | 159 }; |
158 | 160 |
159 } // namespace blink | 161 } // namespace blink |
160 | 162 |
161 #endif | 163 #endif |
OLD | NEW |