summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-25 14:58:09 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-25 14:58:09 -0700
commit1e2c557e0fa0e47c8bafdb31c833ea4f90f5fedd (patch)
tree86c90cdb10f3c478570934816a56070ed6d51260 /core/fpdfdoc/include
parentedfd3c3d6a56bee2456e96df4b945c095ea3a290 (diff)
downloadpdfium-1e2c557e0fa0e47c8bafdb31c833ea4f90f5fedd.tar.xz
Remove CFX_PrivateData from CPDF_Page
CFX_PrivateData served two purposes here: The first was to hold an opaque pointer to the corresponding page structure in the next higher layer, of which it knows no details. Introduce an empty CPDF_Page::View class to represent this higher class, so as to get type safety while preserving layering. The second was to hold an opaque render context, which it also happened to own. Make this a CFX_Deletable to help with management. Also remove an unused inheritance from CFX_PrivateData in CPDF_Annot. Review-Url: https://codereview.chromium.org/2008553008
Diffstat (limited to 'core/fpdfdoc/include')
-rw-r--r--core/fpdfdoc/include/fpdf_doc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/include/fpdf_doc.h b/core/fpdfdoc/include/fpdf_doc.h
index 3ee583d778..8c7ce4eeab 100644
--- a/core/fpdfdoc/include/fpdf_doc.h
+++ b/core/fpdfdoc/include/fpdf_doc.h
@@ -317,7 +317,7 @@ class CPDF_Link {
#define ANNOTFLAG_LOCKED 0x0080
#define ANNOTFLAG_TOGGLENOVIEW 0x0100
-class CPDF_Annot : public CFX_PrivateData {
+class CPDF_Annot {
public:
enum AppearanceMode { Normal, Rollover, Down };