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

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

Issue 1206883002: Fix default text orientation that do not conform Unicode Technical Report #50 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 || isInRange(character, 0xFE00, 0xFE0F) // VARIATION SELECTOR-1 to 1 6 58 || isInRange(character, 0xFE00, 0xFE0F) // VARIATION SELECTOR-1 to 1 6
59 || isInRange(character, 0xE0100, 0xE01EF); // VARIATION SELECTOR-17 to 256 59 || isInRange(character, 0xE0100, 0xE01EF); // VARIATION SELECTOR-17 to 256
60 } 60 }
61 61
62 static bool isCJKIdeograph(UChar32); 62 static bool isCJKIdeograph(UChar32);
63 static bool isCJKIdeographOrSymbol(UChar32); 63 static bool isCJKIdeographOrSymbol(UChar32);
64 64
65 static unsigned expansionOpportunityCount(const LChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify); 65 static unsigned expansionOpportunityCount(const LChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify);
66 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify); 66 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion, const TextJustify);
67 67
68 static bool shouldIgnoreRotation(UChar32 character); 68 static bool isUprightInMixedVertical(UChar32 character);
69 69
70 static bool treatAsSpace(UChar c) 70 static bool treatAsSpace(UChar c)
71 { 71 {
72 return c == spaceCharacter 72 return c == spaceCharacter
73 || c == tabulationCharacter 73 || c == tabulationCharacter
74 || c == newlineCharacter 74 || c == newlineCharacter
75 || c == noBreakSpaceCharacter; 75 || c == noBreakSpaceCharacter;
76 } 76 }
77 static bool treatAsZeroWidthSpace(UChar c) 77 static bool treatAsZeroWidthSpace(UChar c)
78 { 78 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static String normalizeSpaces(const LChar*, unsigned length); 118 static String normalizeSpaces(const LChar*, unsigned length);
119 static String normalizeSpaces(const UChar*, unsigned length); 119 static String normalizeSpaces(const UChar*, unsigned length);
120 120
121 private: 121 private:
122 Character(); 122 Character();
123 }; 123 };
124 124
125 } // namespace blink 125 } // namespace blink
126 126
127 #endif 127 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/writing-mode/text-orientation-mongolian-phagspa-expected.txt ('k') | Source/platform/fonts/Character.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698