summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_csscache.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-12 10:27:16 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-12 19:22:47 +0000
commit98d00b230aa14924dfde2eba3aaf69f86d18a45b (patch)
treef52e00fa9e69be083ecbfcdf795d534e79f07005 /xfa/fde/css/fde_csscache.h
parent6cf5ecae75a5cd6fea9ae7f4e28cc28abb3e69c6 (diff)
downloadpdfium-98d00b230aa14924dfde2eba3aaf69f86d18a45b.tar.xz
Remove used items from the CSS code.chromium/2980
This Cl cleans up the property and property value definitions which are never used in the FDE CSS parser code. A few other unused methods are also removed. Change-Id: Ib5a316d9c877d87f1d5e0003de4d85d59eab087a Reviewed-on: https://pdfium-review.googlesource.com/2175 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/css/fde_csscache.h')
-rw-r--r--xfa/fde/css/fde_csscache.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/xfa/fde/css/fde_csscache.h b/xfa/fde/css/fde_csscache.h
index 40494fade5..0ddaf39565 100644
--- a/xfa/fde/css/fde_csscache.h
+++ b/xfa/fde/css/fde_csscache.h
@@ -11,15 +11,6 @@
#include "xfa/fde/css/fde_css.h"
-class FDE_CSSCacheItem {
- public:
- explicit FDE_CSSCacheItem(IFDE_CSSStyleSheet* p);
- ~FDE_CSSCacheItem();
-
- IFDE_CSSStyleSheet* pStylesheet;
- uint32_t dwActivity;
-};
-
class FDE_CSSTagCache {
public:
FDE_CSSTagCache(FDE_CSSTagCache* parent, CXFA_CSSTagProvider* tag);
@@ -28,11 +19,9 @@ class FDE_CSSTagCache {
FDE_CSSTagCache* GetParent() const { return pParent; }
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()
@@ -40,7 +29,7 @@ class FDE_CSSTagCache {
: 0;
}
- protected:
+ private:
CXFA_CSSTagProvider* pTag;
FDE_CSSTagCache* pParent;
uint32_t dwIDHash;
@@ -61,7 +50,7 @@ class CFDE_CSSAccelerator {
FDE_CSSTagCache* GetTopElement() const { return m_Stack.GetTopElement(); }
- protected:
+ private:
CFX_ObjectStackTemplate<FDE_CSSTagCache> m_Stack;
};