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

Unified Diff: xfa/src/fdp/src/css/fde_csscache.h

Issue 1726803002: Remove more _CAPS names (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fdp/include/fde_xml.h ('k') | xfa/src/fdp/src/css/fde_csscache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fdp/src/css/fde_csscache.h
diff --git a/xfa/src/fdp/src/css/fde_csscache.h b/xfa/src/fdp/src/css/fde_csscache.h
index 29ef417412898ba5f177cd637645c2d78e4b6d7a..9e13d50087e0d3a050ec1afbd8597b1fcfcd5e13 100644
--- a/xfa/src/fdp/src/css/fde_csscache.h
+++ b/xfa/src/fdp/src/css/fde_csscache.h
@@ -10,12 +10,14 @@
#include "xfa/src/fdp/include/fde_css.h"
#include "xfa/src/fgas/include/fx_mem.h"
-typedef struct _FDE_CSSCACHEITEM : public CFX_Target {
- _FDE_CSSCACHEITEM(IFDE_CSSStyleSheet* p);
- ~_FDE_CSSCACHEITEM();
+struct FDE_CSSCACHEITEM : public CFX_Target {
+ FDE_CSSCACHEITEM(IFDE_CSSStyleSheet* p);
+ ~FDE_CSSCACHEITEM();
+
IFDE_CSSStyleSheet* pStylesheet;
FX_DWORD dwActivity;
-} FDE_CSSCACHEITEM, *FDE_LPCSSCACHEITEM;
+};
+
class CFDE_CSSStyleSheetCache : public IFDE_CSSStyleSheetCache,
public CFX_Target {
public:
@@ -35,15 +37,16 @@ class CFDE_CSSStyleSheetCache : public IFDE_CSSStyleSheetCache,
protected:
void RemoveLowestActivityItem();
- std::map<CFX_ByteString, FDE_LPCSSCACHEITEM> m_Stylesheets;
+ std::map<CFX_ByteString, FDE_CSSCACHEITEM*> m_Stylesheets;
IFX_MEMAllocator* m_pFixedStore;
int32_t m_iMaxItems;
};
-typedef struct _FDE_CSSTAGCACHE : public CFX_Target {
+
+struct FDE_CSSTAGCACHE : public CFX_Target {
public:
- _FDE_CSSTAGCACHE(_FDE_CSSTAGCACHE* parent, IFDE_CSSTagProvider* tag);
- _FDE_CSSTAGCACHE(const _FDE_CSSTAGCACHE& it);
- _FDE_CSSTAGCACHE* GetParent() const { return pParent; }
+ FDE_CSSTAGCACHE(FDE_CSSTAGCACHE* parent, IFDE_CSSTagProvider* tag);
+ FDE_CSSTAGCACHE(const FDE_CSSTAGCACHE& it);
+ FDE_CSSTAGCACHE* GetParent() const { return pParent; }
IFDE_CSSTagProvider* GetTag() const { return pTag; }
FX_DWORD HashID() const { return dwIDHash; }
FX_DWORD HashTag() const { return dwTagHash; }
@@ -57,19 +60,20 @@ typedef struct _FDE_CSSTAGCACHE : public CFX_Target {
protected:
IFDE_CSSTagProvider* pTag;
- _FDE_CSSTAGCACHE* pParent;
+ FDE_CSSTAGCACHE* pParent;
FX_DWORD dwIDHash;
FX_DWORD dwTagHash;
int32_t iClassIndex;
CFDE_DWordArray dwClassHashs;
-} FDE_CSSTAGCACHE, *FDE_LPCSSTAGCACHE;
+};
typedef CFX_ObjectStackTemplate<FDE_CSSTAGCACHE> CFDE_CSSTagStack;
+
class CFDE_CSSAccelerator : public IFDE_CSSAccelerator, public CFX_Target {
public:
virtual void OnEnterTag(IFDE_CSSTagProvider* pTag);
virtual void OnLeaveTag(IFDE_CSSTagProvider* pTag);
void Clear() { m_Stack.RemoveAll(); }
- FDE_LPCSSTAGCACHE GetTopElement() const { return m_Stack.GetTopElement(); }
+ FDE_CSSTAGCACHE* GetTopElement() const { return m_Stack.GetTopElement(); }
protected:
CFDE_CSSTagStack m_Stack;
« no previous file with comments | « xfa/src/fdp/include/fde_xml.h ('k') | xfa/src/fdp/src/css/fde_csscache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698