diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-27 11:58:31 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-27 17:06:59 +0000 |
commit | 2b70ec2d6df96bdf6f72cfac7a8cbbcdd1293d8c (patch) | |
tree | b586aa34419d4aa22fe50a1a01922fc87fb02c84 /xfa/fde/css/cfde_cssstyleselector.h | |
parent | 6f38b4b29c8daa41fe91cc5161d3d75511167ec6 (diff) | |
download | pdfium-2b70ec2d6df96bdf6f72cfac7a8cbbcdd1293d8c.tar.xz |
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 <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_cssstyleselector.h')
-rw-r--r-- | xfa/fde/css/cfde_cssstyleselector.h | 4 |
1 files changed, 1 insertions, 3 deletions
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<CFDE_CSSValueList>& pList); FDE_CSSFontVariant ToFontVariant(FDE_CSSPropertyValue eValue); - CFX_UnownedPtr<CFGAS_FontMgr> const m_pFontMgr; float m_fDefFontSize; std::unique_ptr<CFDE_CSSStyleSheet> m_UAStyles; CFDE_CSSRuleCollection m_UARules; |