From e73fea598f088151213fb11100798c615543ca2f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 23 Jan 2017 15:37:39 -0500 Subject: 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 Commit-Queue: dsinclair --- xfa/fde/css/cfde_cssstyleselector.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'xfa/fde/css/cfde_cssstyleselector.h') 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& matchedDecls, - FDE_CSSPseudo ePseudoType = FDE_CSSPseudo::NONE); + CFX_ArrayTemplate& 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); -- cgit v1.2.3