From 2b70ec2d6df96bdf6f72cfac7a8cbbcdd1293d8c Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 27 Jul 2017 11:58:31 -0400 Subject: The FDE CSS code does not use the CFGAS_FontMgr The CFGAS_FontMgr is being provided to the CSS style selector in order to pas it to the RulesCollection. The RulesCollection does not use the font manager so remove the font manager from the CSS code. Change-Id: I61a4a5060053615935902cb31fbc12d9856acded Reviewed-on: https://pdfium-review.googlesource.com/9270 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fde/css/cfde_cssstyleselector.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xfa/fde/css/cfde_cssstyleselector.h') diff --git a/xfa/fde/css/cfde_cssstyleselector.h b/xfa/fde/css/cfde_cssstyleselector.h index 6f40c968c7..7ead812fd2 100644 --- a/xfa/fde/css/cfde_cssstyleselector.h +++ b/xfa/fde/css/cfde_cssstyleselector.h @@ -23,11 +23,10 @@ class CFDE_CSSSelector; class CFDE_CSSStyleSheet; class CFDE_CSSValue; class CFDE_CSSValueList; -class CFGAS_FontMgr; class CFDE_CSSStyleSelector { public: - explicit CFDE_CSSStyleSelector(CFGAS_FontMgr* pFontMgr); + CFDE_CSSStyleSelector(); ~CFDE_CSSStyleSelector(); void SetDefFontSize(float fFontSize); @@ -78,7 +77,6 @@ class CFDE_CSSStyleSelector { uint32_t ToTextDecoration(const CFX_RetainPtr& pList); FDE_CSSFontVariant ToFontVariant(FDE_CSSPropertyValue eValue); - CFX_UnownedPtr const m_pFontMgr; float m_fDefFontSize; std::unique_ptr m_UAStyles; CFDE_CSSRuleCollection m_UARules; -- cgit v1.2.3