From 698c5716d005860360527e4cfe15b4a185589117 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 28 Sep 2016 16:47:07 -0700 Subject: Use string pools in some dictionaries, names, and strings. BUG=pdfium:597 Review-Url: https://codereview.chromium.org/2345063002 --- core/fpdfdoc/include/cpdf_annot.h | 3 +++ core/fpdfdoc/include/cpdf_filespec.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'core/fpdfdoc/include') diff --git a/core/fpdfdoc/include/cpdf_annot.h b/core/fpdfdoc/include/cpdf_annot.h index 43f58931d3..e88375a903 100644 --- a/core/fpdfdoc/include/cpdf_annot.h +++ b/core/fpdfdoc/include/cpdf_annot.h @@ -81,6 +81,8 @@ class CPDF_Annot { CFX_FloatRect GetRect() const; const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } + CPDF_Document* GetDocument() const { return m_pDocument; } + FX_BOOL DrawAppearance(CPDF_Page* pPage, CFX_RenderDevice* pDevice, const CFX_Matrix* pUser2Device, @@ -90,6 +92,7 @@ class CPDF_Annot { CPDF_RenderContext* pContext, const CFX_Matrix* pUser2Device, AppearanceMode mode); + void ClearCachedAP(); void DrawBorder(CFX_RenderDevice* pDevice, const CFX_Matrix* pUser2Device, diff --git a/core/fpdfdoc/include/cpdf_filespec.h b/core/fpdfdoc/include/cpdf_filespec.h index 06badbaa5e..66f35fc202 100644 --- a/core/fpdfdoc/include/cpdf_filespec.h +++ b/core/fpdfdoc/include/cpdf_filespec.h @@ -7,13 +7,15 @@ #ifndef CORE_FPDFDOC_INCLUDE_CPDF_FILESPEC_H_ #define CORE_FPDFDOC_INCLUDE_CPDF_FILESPEC_H_ +#include "core/fxcrt/include/cfx_string_pool_template.h" +#include "core/fxcrt/include/cfx_weak_ptr.h" #include "core/fxcrt/include/fx_string.h" class CPDF_Object; class CPDF_FileSpec { public: - CPDF_FileSpec(); + explicit CPDF_FileSpec(const CFX_WeakPtr& pPool); explicit CPDF_FileSpec(CPDF_Object* pObj) : m_pObj(pObj) {} // Convert a platform dependent file name into pdf format. -- cgit v1.2.3