Chromium Code Reviews| Index: Source/platform/fonts/Character.h |
| diff --git a/Source/platform/fonts/Character.h b/Source/platform/fonts/Character.h |
| index bbe0433f369a907fc369bcc4426fc1f44441fe4c..b80f8777c37de232df6c415bc011212ea0b26a64 100644 |
| --- a/Source/platform/fonts/Character.h |
| +++ b/Source/platform/fonts/Character.h |
| @@ -48,8 +48,8 @@ public: |
| static bool isCJKIdeograph(UChar32); |
| static bool isCJKIdeographOrSymbol(UChar32); |
| - static unsigned expansionOpportunityCount(const LChar*, size_t length, TextDirection, bool& isAfterExpansion); |
| - static unsigned expansionOpportunityCount(const UChar*, size_t length, TextDirection, bool& isAfterExpansion); |
| + static unsigned expansionOpportunityCount(const LChar*, size_t length, TextDirection, bool& isAfterExpansion, const bool distributeJustification); |
| + static unsigned expansionOpportunityCount(const UChar*, size_t length, TextDirection, bool& isAfterExpansion, const bool distributeJustification); |
|
leviw_travelin_and_unemployed
2014/07/28 23:59:58
Can we use an enum instead of an extra bool? :-/
dw.im
2014/07/29 01:54:54
I guess so. And, using enum also can give chance t
|
| static bool treatAsSpace(UChar c) { return c == ' ' || c == '\t' || c == '\n' || c == noBreakSpace; } |
| static bool treatAsZeroWidthSpace(UChar c) { return treatAsZeroWidthSpaceInComplexScript(c) || c == 0x200c || c == 0x200d; } |