OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
8 #define XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 8 #define XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
9 | 9 |
| 10 #include <unordered_map> |
| 11 |
10 #include "core/fxcrt/include/fx_ext.h" | 12 #include "core/fxcrt/include/fx_ext.h" |
11 #include "xfa/fde/css/fde_cssdeclaration.h" | 13 #include "xfa/fde/css/fde_cssdeclaration.h" |
12 | 14 |
13 class CFDE_CSSSyntaxParser; | 15 class CFDE_CSSSyntaxParser; |
14 | 16 |
15 class CFDE_CSSSelector : public CFX_Target { | 17 class CFDE_CSSSelector : public CFX_Target { |
16 public: | 18 public: |
17 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, | 19 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, |
18 const FX_WCHAR* psz, | 20 const FX_WCHAR* psz, |
19 int32_t iLen, | 21 int32_t iLen, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 FDE_CSSSYNTAXSTATUS LoadFontFaceRule(CFDE_CSSSyntaxParser* pSyntax, | 129 FDE_CSSSYNTAXSTATUS LoadFontFaceRule(CFDE_CSSSyntaxParser* pSyntax, |
128 CFDE_CSSRuleArray& ruleArray); | 130 CFDE_CSSRuleArray& ruleArray); |
129 FDE_CSSSYNTAXSTATUS SkipRuleSet(CFDE_CSSSyntaxParser* pSyntax); | 131 FDE_CSSSYNTAXSTATUS SkipRuleSet(CFDE_CSSSyntaxParser* pSyntax); |
130 uint16_t m_wCodePage; | 132 uint16_t m_wCodePage; |
131 uint16_t m_wRefCount; | 133 uint16_t m_wRefCount; |
132 uint32_t m_dwMediaList; | 134 uint32_t m_dwMediaList; |
133 IFX_MemoryAllocator* m_pAllocator; | 135 IFX_MemoryAllocator* m_pAllocator; |
134 CFDE_CSSRuleArray m_RuleArray; | 136 CFDE_CSSRuleArray m_RuleArray; |
135 CFX_WideString m_szUrl; | 137 CFX_WideString m_szUrl; |
136 CFDE_CSSSelectorArray m_Selectors; | 138 CFDE_CSSSelectorArray m_Selectors; |
137 CFX_MapPtrToPtr m_StringCache; | 139 std::unordered_map<uint32_t, FX_WCHAR*> m_StringCache; |
138 }; | 140 }; |
139 | 141 |
140 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 142 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
OLD | NEW |