summaryrefslogtreecommitdiff
path: root/xfa/fde/css/cfde_cssrulecollection.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-23 15:38:28 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-24 14:28:24 +0000
commit1339133720c3b8bce77e970b479ec179160f30b5 (patch)
tree5927042eab27eaa4a96cf4276dec54d3e8a44a23 /xfa/fde/css/cfde_cssrulecollection.h
parent3d328767f9c0c04b62173aac03c35aab3fb87ffe (diff)
downloadpdfium-1339133720c3b8bce77e970b479ec179160f30b5.tar.xz
Remove ID, Class and Universal selector code
The UA style defined in CXFA_TextParser does not specify any ID, Class or Universal selectors. Remove related code. Change-Id: I9f2d760ee86f309a9cfa8a0f1f3e3dd7a15ef4c8 Reviewed-on: https://pdfium-review.googlesource.com/2295 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_cssrulecollection.h')
-rw-r--r--xfa/fde/css/cfde_cssrulecollection.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/xfa/fde/css/cfde_cssrulecollection.h b/xfa/fde/css/cfde_cssrulecollection.h
index 03698748e6..47e7696c34 100644
--- a/xfa/fde/css/cfde_cssrulecollection.h
+++ b/xfa/fde/css/cfde_cssrulecollection.h
@@ -36,23 +36,11 @@ class CFDE_CSSRuleCollection {
void Clear();
int32_t CountSelectors() const { return m_iSelectors; }
- Data* GetIDRuleData(uint32_t dwIDHash) {
- auto it = m_IDRules.find(dwIDHash);
- return it != m_IDRules.end() ? it->second : nullptr;
- }
-
Data* GetTagRuleData(uint32_t dwTagHash) {
auto it = m_TagRules.find(dwTagHash);
return it != m_TagRules.end() ? it->second : nullptr;
}
- Data* GetClassRuleData(uint32_t dwIDHash) {
- auto it = m_ClassRules.find(dwIDHash);
- return it != m_ClassRules.end() ? it->second : nullptr;
- }
-
- Data* GetUniversalRuleData() { return m_pUniversalRules; }
-
private:
void AddRulesFrom(const CFDE_CSSStyleSheet* pStyleSheet,
CFDE_CSSStyleRule* pRule,
@@ -64,10 +52,7 @@ class CFDE_CSSRuleCollection {
bool AddRuleTo(Data** pList, Data* pData);
Data* NewRuleData(CFDE_CSSSelector* pSel, CFDE_CSSDeclaration* pDecl);
- std::map<uint32_t, Data*> m_IDRules;
std::map<uint32_t, Data*> m_TagRules;
- std::map<uint32_t, Data*> m_ClassRules;
- Data* m_pUniversalRules;
int32_t m_iSelectors;
};