summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_csscache.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-21 13:37:10 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-21 13:37:10 -0700
commitbc1cbabe8d8bfa74d25160c14afa30d5b40df335 (patch)
treebc8ba8fbf303f863ca62d71f0bad013bd622309a /xfa/fde/css/fde_csscache.h
parent5d9da0c1255a75dd9b7b2005f8b7d6ae4948feaf (diff)
downloadpdfium-bc1cbabe8d8bfa74d25160c14afa30d5b40df335.tar.xz
Remove IFDE_CSSTagProvider.
There is only one subsclass, use that instead. Remove the use of WideStringC in the API. BUG=pdfium:468 Review URL: https://codereview.chromium.org/1911843002
Diffstat (limited to 'xfa/fde/css/fde_csscache.h')
-rw-r--r--xfa/fde/css/fde_csscache.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/xfa/fde/css/fde_csscache.h b/xfa/fde/css/fde_csscache.h
index 41908c1c6c..2cf007db79 100644
--- a/xfa/fde/css/fde_csscache.h
+++ b/xfa/fde/css/fde_csscache.h
@@ -23,13 +23,16 @@ class FDE_CSSCacheItem : public CFX_Target {
class FDE_CSSTagCache : public CFX_Target {
public:
- FDE_CSSTagCache(FDE_CSSTagCache* parent, IFDE_CSSTagProvider* tag);
+ FDE_CSSTagCache(FDE_CSSTagCache* parent, CXFA_CSSTagProvider* tag);
FDE_CSSTagCache(const FDE_CSSTagCache& it);
+
FDE_CSSTagCache* GetParent() const { return pParent; }
- IFDE_CSSTagProvider* GetTag() const { return pTag; }
+ CXFA_CSSTagProvider* GetTag() const { return pTag; }
+
uint32_t HashID() const { return dwIDHash; }
uint32_t HashTag() const { return dwTagHash; }
int32_t CountHashClass() const { return dwClassHashs.GetSize(); }
+
void SetClassIndex(int32_t index) { iClassIndex = index; }
uint32_t HashClass() const {
return iClassIndex < dwClassHashs.GetSize()
@@ -38,7 +41,7 @@ class FDE_CSSTagCache : public CFX_Target {
}
protected:
- IFDE_CSSTagProvider* pTag;
+ CXFA_CSSTagProvider* pTag;
FDE_CSSTagCache* pParent;
uint32_t dwIDHash;
uint32_t dwTagHash;
@@ -49,8 +52,8 @@ typedef CFX_ObjectStackTemplate<FDE_CSSTagCache> CFDE_CSSTagStack;
class CFDE_CSSAccelerator : public CFX_Target {
public:
- void OnEnterTag(IFDE_CSSTagProvider* pTag);
- void OnLeaveTag(IFDE_CSSTagProvider* pTag);
+ void OnEnterTag(CXFA_CSSTagProvider* pTag);
+ void OnLeaveTag(CXFA_CSSTagProvider* pTag);
void Clear() { m_Stack.RemoveAll(); }