diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-04 14:10:50 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-04 21:25:26 +0000 |
commit | b8a8c43f394277d1f87320a4f01b4d5c38e81113 (patch) | |
tree | d7e0ffa2d9ed7aa9e31e506538aa450ecabed937 /core/fpdfapi/page/cpdf_textstate.h | |
parent | d74da7bb34abdae254df64ba2c0da7a581f6dae0 (diff) | |
download | pdfium-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.h | 3 |
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; |