summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_image.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-11 21:28:38 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-11 21:28:38 +0000
commit731526e3b9f32ceac1cdac600fe3ecd55a0bc9b5 (patch)
tree7606b1ec1ad1e4c15136515958a22e0e3fbdfb0a /core/fpdfapi/page/cpdf_image.cpp
parent92c8b1a07b01f428ec3f2b6d04acc109bfdeb3da (diff)
downloadpdfium-731526e3b9f32ceac1cdac600fe3ecd55a0bc9b5.tar.xz
Move some GetDict() calls out of header files.
Change-Id: I13b297ddb080b478a30a959889941b46feb363b3 Reviewed-on: https://pdfium-review.googlesource.com/20770 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_image.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_image.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_image.cpp b/core/fpdfapi/page/cpdf_image.cpp
index d722c22fb5..5221fd73be 100644
--- a/core/fpdfapi/page/cpdf_image.cpp
+++ b/core/fpdfapi/page/cpdf_image.cpp
@@ -71,6 +71,10 @@ void CPDF_Image::ConvertStreamToIndirectObject() {
m_pDocument->AddIndirectObject(m_pStream.Release());
}
+CPDF_Dictionary* CPDF_Image::GetDict() const {
+ return m_pStream ? m_pStream->GetDict() : nullptr;
+}
+
std::unique_ptr<CPDF_Dictionary> CPDF_Image::InitJPEG(uint8_t* pData,
uint32_t size) {
int32_t width;