diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-23 15:37:39 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-24 13:59:50 +0000 |
commit | e73fea598f088151213fb11100798c615543ca2f (patch) | |
tree | 6d44f161ad24c7705443be0eed802fac5151f9f9 /xfa/fde/css/cfde_cssrulecollection.cpp | |
parent | 35a89dde15007d28c6796926708e8f0b5ee60d74 (diff) | |
download | pdfium-e73fea598f088151213fb11100798c615543ca2f.tar.xz |
Remove CSS Pseudo parsing
We always match against the pseudo type NONE when matching selectors, so we
never end up using any pseudo selectors. This CL removes the pseudo selector
parsing code.
Change-Id: I7831d12dfff3a6f1dc98ff8e1d63c1090775562c
Reviewed-on: https://pdfium-review.googlesource.com/2294
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 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xfa/fde/css/cfde_cssrulecollection.cpp b/xfa/fde/css/cfde_cssrulecollection.cpp index 7ef36f2093..db3342cfc6 100644 --- a/xfa/fde/css/cfde_cssrulecollection.cpp +++ b/xfa/fde/css/cfde_cssrulecollection.cpp @@ -28,7 +28,7 @@ void CFDE_CSSRuleCollection::Clear() { } CFDE_CSSRuleCollection::CFDE_CSSRuleCollection() - : m_pUniversalRules(nullptr), m_pPseudoRules(nullptr), m_iSelectors(0) {} + : m_pUniversalRules(nullptr), m_iSelectors(0) {} CFDE_CSSRuleCollection::~CFDE_CSSRuleCollection() { Clear(); @@ -48,11 +48,6 @@ void CFDE_CSSRuleCollection::AddRulesFrom(const CFDE_CSSStyleSheet* pStyleSheet, int32_t iSelectors = pStyleRule->CountSelectorLists(); for (int32_t i = 0; i < iSelectors; ++i) { CFDE_CSSSelector* pSelector = pStyleRule->GetSelectorList(i); - if (pSelector->GetType() == FDE_CSSSelectorType::Pseudo) { - Data* pData = NewRuleData(pSelector, pDeclaration); - AddRuleTo(&m_pPseudoRules, pData); - continue; - } if (pSelector->GetNameHash() != FDE_CSSUNIVERSALHASH) { AddRuleTo(&m_TagRules, pSelector->GetNameHash(), pSelector, pDeclaration); continue; |