summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-07-25 13:40:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-25 13:40:11 -0700
commit22b05fc0f0cbfd3841b0963b577719fd16725081 (patch)
tree1c4024e32150ada8d6963d82daf4be824d411580 /core/fpdfapi
parent3e805789a3855007018f8463797a4f9fdb19838d (diff)
downloadpdfium-22b05fc0f0cbfd3841b0963b577719fd16725081.tar.xz
Remove FX_FONTCACHE_DEFINE
This macro isn't buying us anything and reduces transparency. Review-Url: https://codereview.chromium.org/2179953002
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/fpdf_render/fpdf_render_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
index d8d416dd39..cc9c751b32 100644
--- a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
+++ b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
@@ -764,7 +764,7 @@ void CPDF_RenderStatus::DrawTextPathWithPattern(const CPDF_TextObject* textobj,
pCache = CFX_GEModule::Get()->GetFontCache();
}
CFX_FaceCache* pFaceCache = pCache->GetCachedFace(&pFont->m_Font);
- FX_FONTCACHE_DEFINE(pCache, &pFont->m_Font);
+ CFX_AutoFontCache autoFontCache(pCache, &pFont->m_Font);
CPDF_CharPosList CharPosList;
CharPosList.Load(textobj->m_nChars, textobj->m_pCharCodes,
textobj->m_pCharPos, pFont, font_size);