diff options
author | npm <npm@chromium.org> | 2016-10-11 14:50:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 14:50:56 -0700 |
commit | 2bfa222a38e12a5108899a9d9b5a9b2179dcb4c1 (patch) | |
tree | 954a22f3490d787452f6ffc7562270534900e3dd /core/fpdfapi/render | |
parent | 709f5a9301e91365ab87610993c497e386504ead (diff) | |
download | pdfium-2bfa222a38e12a5108899a9d9b5a9b2179dcb4c1.tar.xz |
Delete unused flags from CFX_SubstFontchromium/2888
Review-Url: https://codereview.chromium.org/2409173003
Diffstat (limited to 'core/fpdfapi/render')
-rw-r--r-- | core/fpdfapi/render/fpdf_render_text.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/fpdfapi/render/fpdf_render_text.cpp b/core/fpdfapi/render/fpdf_render_text.cpp index 528e11dc44..b8f44f8bd9 100644 --- a/core/fpdfapi/render/fpdf_render_text.cpp +++ b/core/fpdfapi/render/fpdf_render_text.cpp @@ -57,20 +57,16 @@ FX_BOOL CPDF_RenderStatus::ProcessText(CPDF_TextObject* textobj, break; case TextRenderingMode::MODE_STROKE: case TextRenderingMode::MODE_STROKE_CLIP: - if (pFont->GetFace() || - (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { + if (pFont->GetFace()) bStroke = true; - } else { + else bFill = true; - } break; case TextRenderingMode::MODE_FILL_STROKE: case TextRenderingMode::MODE_FILL_STROKE_CLIP: bFill = true; - if (pFont->GetFace() || - (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { + if (pFont->GetFace()) bStroke = true; - } break; case TextRenderingMode::MODE_INVISIBLE: // Already handled above, but the compiler is not smart enough to |