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_SRC_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
8 #define XFA_SRC_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 8 #define XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_ext.h" | 10 #include "core/include/fxcrt/fx_ext.h" |
11 #include "xfa/src/fde/css/fde_cssdeclaration.h" | 11 #include "xfa/fde/css/fde_cssdeclaration.h" |
12 | 12 |
13 class CFDE_CSSSelector : public IFDE_CSSSelector, public CFX_Target { | 13 class CFDE_CSSSelector : public IFDE_CSSSelector, public CFX_Target { |
14 public: | 14 public: |
15 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, | 15 CFDE_CSSSelector(FDE_CSSSELECTORTYPE eType, |
16 const FX_WCHAR* psz, | 16 const FX_WCHAR* psz, |
17 int32_t iLen, | 17 int32_t iLen, |
18 FX_BOOL bIgnoreCase) | 18 FX_BOOL bIgnoreCase) |
19 : m_eType(eType), | 19 : m_eType(eType), |
20 m_dwHash(FX_HashCode_String_GetW(psz, iLen, bIgnoreCase)), | 20 m_dwHash(FX_HashCode_String_GetW(psz, iLen, bIgnoreCase)), |
21 m_pNext(NULL) {} | 21 m_pNext(NULL) {} |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 FX_WORD m_wCodePage; | 131 FX_WORD m_wCodePage; |
132 FX_WORD m_wRefCount; | 132 FX_WORD m_wRefCount; |
133 FX_DWORD m_dwMediaList; | 133 FX_DWORD m_dwMediaList; |
134 IFX_MEMAllocator* m_pAllocator; | 134 IFX_MEMAllocator* m_pAllocator; |
135 CFDE_CSSRuleArray m_RuleArray; | 135 CFDE_CSSRuleArray m_RuleArray; |
136 CFX_WideString m_szUrl; | 136 CFX_WideString m_szUrl; |
137 CFDE_CSSSelectorArray m_Selectors; | 137 CFDE_CSSSelectorArray m_Selectors; |
138 CFX_MapPtrToPtr m_StringCache; | 138 CFX_MapPtrToPtr m_StringCache; |
139 }; | 139 }; |
140 | 140 |
141 #endif // XFA_SRC_FDE_CSS_FDE_CSSSTYLESHEET_H_ | 141 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ |
OLD | NEW |