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_cssrulecollection.cpp | |
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_cssrulecollection.cpp')
-rw-r--r-- | xfa/fde/css/cfde_cssrulecollection.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xfa/fde/css/cfde_cssrulecollection.cpp b/xfa/fde/css/cfde_cssrulecollection.cpp index e318651137..b945fd518b 100644 --- a/xfa/fde/css/cfde_cssrulecollection.cpp +++ b/xfa/fde/css/cfde_cssrulecollection.cpp @@ -33,16 +33,14 @@ CFDE_CSSRuleCollection::GetTagRuleData(const CFX_WideString& tagname) const { return it != m_TagRules.end() ? &it->second : nullptr; } -void CFDE_CSSRuleCollection::AddRulesFrom(const CFDE_CSSStyleSheet* sheet, - CFGAS_FontMgr* pFontMgr) { +void CFDE_CSSRuleCollection::AddRulesFrom(const CFDE_CSSStyleSheet* sheet) { int32_t iRules = sheet->CountRules(); for (int32_t j = 0; j < iRules; j++) - AddRulesFrom(sheet, sheet->GetRule(j), pFontMgr); + AddRulesFrom(sheet, sheet->GetRule(j)); } void CFDE_CSSRuleCollection::AddRulesFrom(const CFDE_CSSStyleSheet* pStyleSheet, - CFDE_CSSStyleRule* pStyleRule, - CFGAS_FontMgr* pFontMgr) { + CFDE_CSSStyleRule* pStyleRule) { CFDE_CSSDeclaration* pDeclaration = pStyleRule->GetDeclaration(); int32_t iSelectors = pStyleRule->CountSelectorLists(); for (int32_t i = 0; i < iSelectors; ++i) { |