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_cssstyleselector.h | |
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_cssstyleselector.h')
-rw-r--r-- | xfa/fde/css/cfde_cssstyleselector.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xfa/fde/css/cfde_cssstyleselector.h b/xfa/fde/css/cfde_cssstyleselector.h index 4d6a7c8ed2..6eb32aef62 100644 --- a/xfa/fde/css/cfde_cssstyleselector.h +++ b/xfa/fde/css/cfde_cssstyleselector.h @@ -41,8 +41,7 @@ class CFDE_CSSStyleSelector { CFDE_CSSComputedStyle* pParentStyle); int32_t MatchDeclarations( CXFA_CSSTagProvider* pTag, - CFX_ArrayTemplate<CFDE_CSSDeclaration*>& matchedDecls, - FDE_CSSPseudo ePseudoType = FDE_CSSPseudo::NONE); + CFX_ArrayTemplate<CFDE_CSSDeclaration*>& matchedDecls); void ComputeStyle(CXFA_CSSTagProvider* pTag, const CFDE_CSSDeclaration** ppDeclArray, int32_t iDeclCount, @@ -50,11 +49,8 @@ class CFDE_CSSStyleSelector { private: void MatchRules(CFDE_CSSTagCache* pCache, - CFDE_CSSRuleCollection::Data* pList, - FDE_CSSPseudo ePseudoType); - bool MatchSelector(CFDE_CSSTagCache* pCache, - CFDE_CSSSelector* pSel, - FDE_CSSPseudo ePseudoType); + CFDE_CSSRuleCollection::Data* pList); + bool MatchSelector(CFDE_CSSTagCache* pCache, CFDE_CSSSelector* pSel); void AppendInlineStyle(CFDE_CSSDeclaration* pDecl, const FX_WCHAR* psz, int32_t iLen); |