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

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

Issue 1995033002: Expand some typedefs to the original types (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | xfa/fgas/crt/fgas_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CSSCACHE_H_ 7 #ifndef XFA_FDE_CSS_FDE_CSSCACHE_H_
8 #define XFA_FDE_CSS_FDE_CSSCACHE_H_ 8 #define XFA_FDE_CSS_FDE_CSSCACHE_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 28 matching lines...) Expand all
39 ? dwClassHashs.GetAt(iClassIndex) 39 ? dwClassHashs.GetAt(iClassIndex)
40 : 0; 40 : 0;
41 } 41 }
42 42
43 protected: 43 protected:
44 CXFA_CSSTagProvider* pTag; 44 CXFA_CSSTagProvider* pTag;
45 FDE_CSSTagCache* pParent; 45 FDE_CSSTagCache* pParent;
46 uint32_t dwIDHash; 46 uint32_t dwIDHash;
47 uint32_t dwTagHash; 47 uint32_t dwTagHash;
48 int32_t iClassIndex; 48 int32_t iClassIndex;
49 CFDE_DWordArray dwClassHashs; 49 CFX_BaseArrayTemplate<uint32_t> dwClassHashs;
50 }; 50 };
51 typedef CFX_ObjectStackTemplate<FDE_CSSTagCache> CFDE_CSSTagStack; 51 typedef CFX_ObjectStackTemplate<FDE_CSSTagCache> CFDE_CSSTagStack;
52 52
53 class CFDE_CSSAccelerator : public CFX_Target { 53 class CFDE_CSSAccelerator : public CFX_Target {
54 public: 54 public:
55 void OnEnterTag(CXFA_CSSTagProvider* pTag); 55 void OnEnterTag(CXFA_CSSTagProvider* pTag);
56 void OnLeaveTag(CXFA_CSSTagProvider* pTag); 56 void OnLeaveTag(CXFA_CSSTagProvider* pTag);
57 57
58 void Clear() { m_Stack.RemoveAll(); } 58 void Clear() { m_Stack.RemoveAll(); }
59 59
60 FDE_CSSTagCache* GetTopElement() const { return m_Stack.GetTopElement(); } 60 FDE_CSSTagCache* GetTopElement() const { return m_Stack.GetTopElement(); }
61 61
62 protected: 62 protected:
63 CFDE_CSSTagStack m_Stack; 63 CFDE_CSSTagStack m_Stack;
64 }; 64 };
65 65
66 #endif // XFA_FDE_CSS_FDE_CSSCACHE_H_ 66 #endif // XFA_FDE_CSS_FDE_CSSCACHE_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fgas/crt/fgas_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698