summaryrefslogtreecommitdiff
path: root/xfa/fde/css/cfde_cssrulecollection.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-27 11:58:31 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-27 17:06:59 +0000
commit2b70ec2d6df96bdf6f72cfac7a8cbbcdd1293d8c (patch)
treeb586aa34419d4aa22fe50a1a01922fc87fb02c84 /xfa/fde/css/cfde_cssrulecollection.h
parent6f38b4b29c8daa41fe91cc5161d3d75511167ec6 (diff)
downloadpdfium-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_cssrulecollection.h')
-rw-r--r--xfa/fde/css/cfde_cssrulecollection.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fde/css/cfde_cssrulecollection.h b/xfa/fde/css/cfde_cssrulecollection.h
index 5d49922fcd..e9ce7c31d3 100644
--- a/xfa/fde/css/cfde_cssrulecollection.h
+++ b/xfa/fde/css/cfde_cssrulecollection.h
@@ -17,7 +17,6 @@ class CFDE_CSSDeclaration;
class CFDE_CSSSelector;
class CFDE_CSSStyleRule;
class CFDE_CSSStyleSheet;
-class CFGAS_FontMgr;
class CFDE_CSSRuleCollection {
public:
@@ -32,7 +31,7 @@ class CFDE_CSSRuleCollection {
CFDE_CSSRuleCollection();
~CFDE_CSSRuleCollection();
- void AddRulesFrom(const CFDE_CSSStyleSheet* sheet, CFGAS_FontMgr* pFontMgr);
+ void AddRulesFrom(const CFDE_CSSStyleSheet* sheet);
void Clear();
int32_t CountSelectors() const { return m_iSelectors; }
@@ -41,8 +40,7 @@ class CFDE_CSSRuleCollection {
private:
void AddRulesFrom(const CFDE_CSSStyleSheet* pStyleSheet,
- CFDE_CSSStyleRule* pRule,
- CFGAS_FontMgr* pFontMgr);
+ CFDE_CSSStyleRule* pRule);
std::map<uint32_t, std::vector<std::unique_ptr<Data>>> m_TagRules;
int32_t m_iSelectors;