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

Unified Diff: third_party/harfbuzz/chromium.patch

Issue 8895014: Fix two truncation bugs in harfbuzz-indic shaper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « third_party/harfbuzz/README.chromium ('k') | third_party/harfbuzz/contrib/harfbuzz-unicode.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/harfbuzz/chromium.patch
===================================================================
--- third_party/harfbuzz/chromium.patch (revision 113251)
+++ third_party/harfbuzz/chromium.patch (working copy)
@@ -34,20 +34,6 @@
#ifndef NO_OPENTYPE
if (HB_SelectScript(item, item->item.script == HB_Script_Arabic ? arabic_features : syriac_features)) {
-diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c
-index a216005..7bd3b3b 100644
---- a/src/harfbuzz-gpos.c
-+++ b/src/harfbuzz-gpos.c
-@@ -3012,6 +3012,9 @@ static HB_Error Lookup_MarkMarkPos( GPOS_Instance* gpi,
- j--;
- }
-
-+ if ( i > buffer->in_pos )
-+ return HB_Err_Not_Covered;
-+
- error = _HB_OPEN_Coverage_Index( &mmp->Mark2Coverage, IN_GLYPH( j ),
- &mark2_index );
- if ( error )
diff --git a/src/harfbuzz-shaper.cpp b/src/harfbuzz-shaper.cpp
index ce4d4ac..5999e08 100644
--- a/src/harfbuzz-shaper.cpp
@@ -134,16 +120,3 @@
} HB_ShaperFlag;
/*
-diff --git a/src/harfbuzz-tibetan.c b/src/harfbuzz-tibetan.c
-index bfa31b1..847ac52 100644
---- a/src/harfbuzz-tibetan.c
-+++ b/src/harfbuzz-tibetan.c
-@@ -90,7 +90,7 @@ static const unsigned char tibetanForm[0x80] = {
-
-
- #define tibetan_form(c) \
-- (TibetanForm)tibetanForm[c - 0x0f40]
-+ ((c) >= 0x0f40 && (c) <= 0x0fc0 ? (TibetanForm)tibetanForm[(c) - 0x0f40] : TibetanOther)
-
- static const HB_OpenTypeFeature tibetan_features[] = {
- { HB_MAKE_TAG('c', 'c', 'm', 'p'), CcmpProperty },
« no previous file with comments | « third_party/harfbuzz/README.chromium ('k') | third_party/harfbuzz/contrib/harfbuzz-unicode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698