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/fxfa/app/cxfa_textparser.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/fxfa/app/cxfa_textparser.h')
-rw-r--r-- | xfa/fxfa/app/cxfa_textparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/app/cxfa_textparser.h b/xfa/fxfa/app/cxfa_textparser.h index a0b5ab1f29..7a94f83aeb 100644 --- a/xfa/fxfa/app/cxfa_textparser.h +++ b/xfa/fxfa/app/cxfa_textparser.h @@ -88,13 +88,13 @@ class CXFA_TextParser { void ParseRichText(CFDE_XMLNode* pXMLNode, CFDE_CSSComputedStyle* pParentStyle); void ParseTagInfo(CFDE_XMLNode* pXMLNode, CXFA_CSSTagProvider& tagProvider); - CFDE_CSSStyleSheet* LoadDefaultSheetStyle(); + std::unique_ptr<CFDE_CSSStyleSheet> LoadDefaultSheetStyle(); CFDE_CSSComputedStyle* CreateStyle(CFDE_CSSComputedStyle* pParentStyle); std::unique_ptr<CFDE_CSSStyleSelector> m_pSelector; - CFDE_CSSStyleSheet* m_pUASheet; std::map<CFDE_XMLNode*, CXFA_TextParseContext*> m_mapXMLNodeToParseContext; bool m_bParsed; + bool m_cssInitialized; }; #endif // XFA_FXFA_APP_CXFA_TEXTPARSER_H_ |