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

Unified Diff: core/fpdfapi/render/fpdf_render_text.cpp

Issue 2409173003: Delete unused flags from CFX_SubstFont (Closed)
Patch Set: Created 4 years, 2 months 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 | « no previous file | core/fxge/cfx_substfont.h » ('j') | core/fxge/cfx_substfont.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 26edc1b0f48b5d42a2e56284f000bea8db1f4c12..6cb9ff593b0ba274d84880d5021db7a3c05c6fd2 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
« no previous file with comments | « no previous file | core/fxge/cfx_substfont.h » ('j') | core/fxge/cfx_substfont.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698