jdk/src/share/native/sun/font/layout/ContextualSubstSubtables.cpp
changeset 16891 91e99bed64ae
parent 7486 6a36b1ebc620
child 18256 79d3f8278a38
equal deleted inserted replaced
16890:36b30720a997 16891:91e99bed64ae
   215     if (LE_FAILURE(success)) {
   215     if (LE_FAILURE(success)) {
   216         return 0;
   216         return 0;
   217     }
   217     }
   218 
   218 
   219     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   219     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   220     le_int32 coverageIndex = getGlyphCoverage(glyph);
   220     le_int32 coverageIndex = getGlyphCoverage(lookupProcessor->getReference(), glyph, success);
   221 
   221 
   222     if (coverageIndex >= 0) {
   222     if (coverageIndex >= 0) {
   223         le_uint16 srSetCount = SWAPW(subRuleSetCount);
   223         le_uint16 srSetCount = SWAPW(subRuleSetCount);
   224 
   224 
   225         if (coverageIndex < srSetCount) {
   225         if (coverageIndex < srSetCount) {
   264     if (LE_FAILURE(success)) {
   264     if (LE_FAILURE(success)) {
   265         return 0;
   265         return 0;
   266     }
   266     }
   267 
   267 
   268     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   268     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   269     le_int32 coverageIndex = getGlyphCoverage(glyph);
   269     le_int32 coverageIndex = getGlyphCoverage(lookupProcessor->getReference(), glyph, success);
   270 
   270 
   271     if (coverageIndex >= 0) {
   271     if (coverageIndex >= 0) {
   272         const ClassDefinitionTable *classDefinitionTable =
   272         const ClassDefinitionTable *classDefinitionTable =
   273             (const ClassDefinitionTable *) ((char *) this + SWAPW(classDefTableOffset));
   273             (const ClassDefinitionTable *) ((char *) this + SWAPW(classDefTableOffset));
   274         le_uint16 scSetCount = SWAPW(subClassSetCount);
   274         le_uint16 scSetCount = SWAPW(subClassSetCount);
   392     if (LE_FAILURE(success)) {
   392     if (LE_FAILURE(success)) {
   393         return 0;
   393         return 0;
   394     }
   394     }
   395 
   395 
   396     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   396     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   397     le_int32 coverageIndex = getGlyphCoverage(glyph);
   397     le_int32 coverageIndex = getGlyphCoverage(lookupProcessor->getReference(), glyph, success);
   398 
   398 
   399     if (coverageIndex >= 0) {
   399     if (coverageIndex >= 0) {
   400         le_uint16 srSetCount = SWAPW(chainSubRuleSetCount);
   400         le_uint16 srSetCount = SWAPW(chainSubRuleSetCount);
   401 
   401 
   402         if (coverageIndex < srSetCount) {
   402         if (coverageIndex < srSetCount) {
   463     if (LE_FAILURE(success)) {
   463     if (LE_FAILURE(success)) {
   464         return 0;
   464         return 0;
   465     }
   465     }
   466 
   466 
   467     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   467     LEGlyphID glyph = glyphIterator->getCurrGlyphID();
   468     le_int32 coverageIndex = getGlyphCoverage(glyph);
   468     le_int32 coverageIndex = getGlyphCoverage(lookupProcessor->getReference(), glyph, success);
   469 
   469 
   470     if (coverageIndex >= 0) {
   470     if (coverageIndex >= 0) {
   471         const ClassDefinitionTable *backtrackClassDefinitionTable =
   471         const ClassDefinitionTable *backtrackClassDefinitionTable =
   472             (const ClassDefinitionTable *) ((char *) this + SWAPW(backtrackClassDefTableOffset));
   472             (const ClassDefinitionTable *) ((char *) this + SWAPW(backtrackClassDefTableOffset));
   473         const ClassDefinitionTable *inputClassDefinitionTable =
   473         const ClassDefinitionTable *inputClassDefinitionTable =