| Index: src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp
|
| diff --git a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp
|
| index e1bb0d27859409fcd10c54f38f949f668989c425..988961e64b14ddc98f721ab6afa048d546fc123f 100644
|
| --- a/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp
|
| +++ b/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp
|
| @@ -171,7 +171,7 @@ sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache,
|
| // Limit the loop count to glyph id ranges provided.
|
| int lastIndex = num_glyphs;
|
| if (subset) {
|
| - while (!subset->isBitSet(lastIndex - 1) && lastIndex > 0) {
|
| + while (!subset->has(lastIndex - 1) && lastIndex > 0) {
|
| --lastIndex;
|
| }
|
| }
|
| @@ -180,7 +180,7 @@ sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache,
|
| for (int gId = 0; gId <= lastIndex; gId++) {
|
| int16_t advance = kInvalidAdvance;
|
| if (gId < lastIndex) {
|
| - if (!subset || 0 == gId || subset->isBitSet(gId)) {
|
| + if (!subset || 0 == gId || subset->has(gId)) {
|
| advance = (int16_t)cache->getGlyphIDAdvance(gId).fAdvanceX;
|
| } else {
|
| advance = kDontCareAdvance;
|
|
|