From a715f524e66a1fd8b974f6e2af0db3c23b8c5190 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 17 Jan 2017 16:03:48 -0500 Subject: More css parser tests; more memory fixes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I929b00204e05eea71c6fd4d52e480cc9c6d6018e Reviewed-on: https://pdfium-review.googlesource.com/2230 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- xfa/fde/css/fde_cssstylesheet.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xfa/fde/css/fde_cssstylesheet.h') diff --git a/xfa/fde/css/fde_cssstylesheet.h b/xfa/fde/css/fde_cssstylesheet.h index 7acccd5776..46c0897694 100644 --- a/xfa/fde/css/fde_cssstylesheet.h +++ b/xfa/fde/css/fde_cssstylesheet.h @@ -51,16 +51,16 @@ class CFDE_CSSStyleRule : public CFDE_CSSRule { CFDE_CSSStyleRule(); ~CFDE_CSSStyleRule() override; - int32_t CountSelectorLists() const; + size_t CountSelectorLists() const; CFDE_CSSSelector* GetSelectorList(int32_t index) const; CFDE_CSSDeclaration* GetDeclaration(); CFDE_CSSDeclaration& GetDeclImp() { return m_Declaration; } - void SetSelector(const std::vector>& list); + + void SetSelector(std::vector>* list); private: CFDE_CSSDeclaration m_Declaration; - std::vector m_ppSelector; // Owned by the stylessheet. - int32_t m_iSelectors; + std::vector> m_ppSelector; }; class CFDE_CSSMediaRule : public CFDE_CSSRule { @@ -126,7 +126,6 @@ class CFDE_CSSStyleSheet : public IFX_Retainable { uint32_t m_dwMediaList; std::vector> m_RuleArray; CFX_WideString m_szUrl; - std::vector> m_Selectors; std::unordered_map m_StringCache; }; -- cgit v1.2.3