From 2bfa222a38e12a5108899a9d9b5a9b2179dcb4c1 Mon Sep 17 00:00:00 2001 From: npm Date: Tue, 11 Oct 2016 14:50:56 -0700 Subject: Delete unused flags from CFX_SubstFont Review-Url: https://codereview.chromium.org/2409173003 --- core/fpdfapi/render/fpdf_render_text.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/fpdfapi/render/fpdf_render_text.cpp') 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 -- cgit v1.2.3