Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: xfa/fde/css/fde_cssstylesheet.h

Issue 1919563002: Pass CFX_*StringCs to FX_HashCode_GETA and _GETW hash functions. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: win again again again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "core/fxcrt/include/fx_ext.h" 10 #include "core/fxcrt/include/fx_ext.h"
11 #include "xfa/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)
Lei Zhang 2016/04/23 01:33:29 Also bool, 4 callers in xfa/fde/css/fde_cssstylesh
Tom Sepez 2016/04/25 16:50:20 Done.
19 : m_eType(eType), 19 : m_eType(eType),
20 m_dwHash(FX_HashCode_String_GetW(psz, iLen, bIgnoreCase)), 20 m_dwHash(FX_HashCode_GetW(CFX_WideStringC(psz, iLen), bIgnoreCase)),
21 m_pNext(NULL) {} 21 m_pNext(NULL) {}
22 virtual FDE_CSSSELECTORTYPE GetType() const { return m_eType; } 22 virtual FDE_CSSSELECTORTYPE GetType() const { return m_eType; }
23 23
24 virtual uint32_t GetNameHash() const { return m_dwHash; } 24 virtual uint32_t GetNameHash() const { return m_dwHash; }
25 25
26 virtual IFDE_CSSSelector* GetNextSelector() const { return m_pNext; } 26 virtual IFDE_CSSSelector* GetNextSelector() const { return m_pNext; }
27 static IFDE_CSSSelector* FromString(IFX_MEMAllocator* pStaticStore, 27 static IFDE_CSSSelector* FromString(IFX_MEMAllocator* pStaticStore,
28 const FX_WCHAR* psz, 28 const FX_WCHAR* psz,
29 int32_t iLen); 29 int32_t iLen);
30 void SetNext(IFDE_CSSSelector* pNext) { m_pNext = pNext; } 30 void SetNext(IFDE_CSSSelector* pNext) { m_pNext = pNext; }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 uint16_t m_wRefCount; 132 uint16_t m_wRefCount;
133 uint32_t m_dwMediaList; 133 uint32_t 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_FDE_CSS_FDE_CSSSTYLESHEET_H_ 141 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698