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

Unified Diff: Source/platform/fonts/Character.h

Issue 957473003: Optimize complex text shaping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/shaping/HarfBuzzShaper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/Character.h
diff --git a/Source/platform/fonts/Character.h b/Source/platform/fonts/Character.h
index ca0666a6fcdf97ac4a7b1dd5499578b51858df96..3162e71a8c1b34b27971e5ab7d6a48a6e18b76ad 100644
--- a/Source/platform/fonts/Character.h
+++ b/Source/platform/fonts/Character.h
@@ -72,7 +72,7 @@ public:
|| c == zeroWidthNonJoiner
|| c == zeroWidthJoiner;
}
- static bool treatAsZeroWidthSpaceInComplexScript(UChar c)
+ static bool treatAsZeroWidthSpaceInComplexScript(UChar32 c)
{
return c < 0x20 // ASCII Control Characters
|| (c >= 0x7F && c < 0xA0) // ASCII Delete .. No-break space
@@ -83,6 +83,12 @@ public:
|| c == zeroWidthNoBreakSpace
|| c == objectReplacementCharacter;
}
+ static bool treatAsZeroWidthSpaceInComplexScript(LChar c)
+ {
+ return c < 0x20 // ASCII Control Characters
+ || (c >= 0x7F && c < 0xA0) // ASCII Delete .. No-break space
+ || c == softHyphen;
+ }
static bool canReceiveTextEmphasis(UChar32);
static inline UChar normalizeSpaces(UChar character)
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/shaping/HarfBuzzShaper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698