summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_textstate.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-05-04 14:10:50 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-04 21:25:26 +0000
commitb8a8c43f394277d1f87320a4f01b4d5c38e81113 (patch)
treed7e0ffa2d9ed7aa9e31e506538aa450ecabed937 /core/fpdfapi/page/cpdf_textstate.h
parentd74da7bb34abdae254df64ba2c0da7a581f6dae0 (diff)
downloadpdfium-b8a8c43f394277d1f87320a4f01b4d5c38e81113.tar.xz
CPDF_Document::GetPageData() normally does not return NULL.
Add a comment to clarify and remove some unneeded checks. Change-Id: I8b0492548b245abc45e161085047c9f36d6c8e2b Reviewed-on: https://pdfium-review.googlesource.com/4871 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_textstate.h')
-rw-r--r--core/fpdfapi/page/cpdf_textstate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_textstate.h b/core/fpdfapi/page/cpdf_textstate.h
index 07bee5ed04..84d2c13a6c 100644
--- a/core/fpdfapi/page/cpdf_textstate.h
+++ b/core/fpdfapi/page/cpdf_textstate.h
@@ -79,6 +79,9 @@ class CPDF_TextState {
TextRenderingMode m_TextMode;
float m_Matrix[4];
float m_CTM[4];
+
+ private:
+ void ReleaseFont();
};
CFX_SharedCopyOnWrite<TextData> m_Ref;