diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-23 13:55:39 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-23 20:24:23 +0000 |
commit | b76f49b36baffea2b2ecb90d67c7b6bb734e7bb9 (patch) | |
tree | 3331545c1296500ddf164267f4bb715c16e38bb3 /xfa/fde/css/cfde_cssstylesheet.h | |
parent | 6414b273506f97012f82c8a32c020b483d5df31a (diff) | |
download | pdfium-b76f49b36baffea2b2ecb90d67c7b6bb734e7bb9.tar.xz |
Remove unused author and and user stylesheets
We only load atyles from the CXFA_TextParser which loads a static UserAgent
stylesheet. This CL removes the User and Author styles from the system
and simplifies the storage of the stylesheets.
Change-Id: I7abcf39333655f8dd6bc2cfe685c8cf73b779c7d
Reviewed-on: https://pdfium-review.googlesource.com/2293
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_cssstylesheet.h')
-rw-r--r-- | xfa/fde/css/cfde_cssstylesheet.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xfa/fde/css/cfde_cssstylesheet.h b/xfa/fde/css/cfde_cssstylesheet.h index 8bbcc485bb..4de377219c 100644 --- a/xfa/fde/css/cfde_cssstylesheet.h +++ b/xfa/fde/css/cfde_cssstylesheet.h @@ -11,25 +11,20 @@ #include <unordered_map> #include <vector> -#include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_string.h" #include "xfa/fde/css/cfde_csssyntaxparser.h" class CFDE_CSSStyleRule; -class CFDE_CSSStyleSheet : public IFX_Retainable { +class CFDE_CSSStyleSheet { public: CFDE_CSSStyleSheet(); - ~CFDE_CSSStyleSheet() override; - - // IFX_Retainable: - uint32_t Retain() override; - uint32_t Release() override; + ~CFDE_CSSStyleSheet(); bool LoadBuffer(const FX_WCHAR* pBuffer, int32_t iBufSize); int32_t CountRules() const; - CFDE_CSSStyleRule* GetRule(int32_t index); + CFDE_CSSStyleRule* GetRule(int32_t index) const; private: void Reset(); @@ -38,7 +33,6 @@ class CFDE_CSSStyleSheet : public IFX_Retainable { std::vector<std::unique_ptr<CFDE_CSSStyleRule>>* ruleArray); void SkipRuleSet(CFDE_CSSSyntaxParser* pSyntax); - uint16_t m_wRefCount; std::vector<std::unique_ptr<CFDE_CSSStyleRule>> m_RuleArray; std::unordered_map<uint32_t, FX_WCHAR*> m_StringCache; }; |