diff options
author | jaepark <jaepark@google.com> | 2016-07-20 11:20:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-20 11:20:01 -0700 |
commit | cc8ae2fd891f71c5d548a042f4d265463887ee6c (patch) | |
tree | b8b806c9a5da93b2676f820603d61acf313df353 /core/fpdfdoc/include/fpdf_doc.h | |
parent | 69f160df5a13bbf1eb3bd39e59c5890d212f98ad (diff) | |
download | pdfium-cc8ae2fd891f71c5d548a042f4d265463887ee6c.tar.xz |
Pass CPDF_Document instead of CPDF_AnnotList when constructing CPDF_Annot.
CPDF_AnnotList in CPDF_Annot is only used for getting CPDF_Document.
Review-Url: https://codereview.chromium.org/2166883002
Diffstat (limited to 'core/fpdfdoc/include/fpdf_doc.h')
-rw-r--r-- | core/fpdfdoc/include/fpdf_doc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfdoc/include/fpdf_doc.h b/core/fpdfdoc/include/fpdf_doc.h index fd5dde09a0..887b0dc5b1 100644 --- a/core/fpdfdoc/include/fpdf_doc.h +++ b/core/fpdfdoc/include/fpdf_doc.h @@ -320,7 +320,7 @@ class CPDF_Annot { public: enum AppearanceMode { Normal, Rollover, Down }; - CPDF_Annot(CPDF_Dictionary* pDict, CPDF_AnnotList* pList); + CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); ~CPDF_Annot(); CFX_ByteString GetSubType() const; @@ -345,7 +345,7 @@ class CPDF_Annot { private: CPDF_Dictionary* const m_pAnnotDict; - CPDF_AnnotList* const m_pList; + CPDF_Document* const m_pDocument; const CFX_ByteString m_sSubtype; std::map<CPDF_Stream*, CPDF_Form*> m_APMap; }; @@ -378,7 +378,6 @@ class CPDF_AnnotList { const std::vector<std::unique_ptr<CPDF_Annot>>& All() const { return m_AnnotList; } - CPDF_Document* GetDocument() const { return m_pDocument; } protected: void DisplayPass(CPDF_Page* pPage, |