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 <memory> | 10 #include <memory> |
11 #include <unordered_map> | 11 #include <unordered_map> |
12 | 12 |
13 #include "core/fxcrt/include/fx_ext.h" | 13 #include "core/fxcrt/fx_ext.h" |
14 #include "xfa/fde/css/fde_cssdeclaration.h" | 14 #include "xfa/fde/css/fde_cssdeclaration.h" |
15 | 15 |
16 class CFDE_CSSSyntaxParser; | 16 class CFDE_CSSSyntaxParser; |
17 | 17 |
18 class CFDE_CSSSelector : public CFX_Target { | 18 class CFDE_CSSSelector : public CFX_Target { |
19 public: | 19 public: |
20 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, | 20 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, |
21 const FX_WCHAR* psz, | 21 const FX_WCHAR* psz, |
22 int32_t iLen, | 22 int32_t iLen, |
23 bool bIgnoreCase); | 23 bool bIgnoreCase); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 uint16_t m_wRefCount; | 135 uint16_t m_wRefCount; |
136 uint32_t m_dwMediaList; | 136 uint32_t m_dwMediaList; |
137 std::unique_ptr<IFX_MemoryAllocator> m_pAllocator; | 137 std::unique_ptr<IFX_MemoryAllocator> m_pAllocator; |
138 CFX_MassArrayTemplate<IFDE_CSSRule*> m_RuleArray; | 138 CFX_MassArrayTemplate<IFDE_CSSRule*> m_RuleArray; |
139 CFX_WideString m_szUrl; | 139 CFX_WideString m_szUrl; |
140 CFX_ArrayTemplate<CFDE_CSSSelector*> m_Selectors; | 140 CFX_ArrayTemplate<CFDE_CSSSelector*> m_Selectors; |
141 std::unordered_map<uint32_t, FX_WCHAR*> m_StringCache; | 141 std::unordered_map<uint32_t, FX_WCHAR*> m_StringCache; |
142 }; | 142 }; |
143 | 143 |
144 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 144 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
OLD | NEW |