summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pathobject.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-06-05 16:19:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-05 16:19:11 +0000
commitd3d8287e143daf12a602a919c120b4e0c656abf8 (patch)
treea616529626c6cc5c021cbc5e1309be0ab67108b3 /core/fpdfapi/page/cpdf_pathobject.cpp
parenteaba5af84597164281ddd972a5e98631b18d783b (diff)
downloadpdfium-d3d8287e143daf12a602a919c120b4e0c656abf8.tar.xz
Create m_ContentStream field in CPDF_PageObject.
Content streams are now split and can set nonzero values to identify each parsed content stream. Bug: pdfium:1051 Change-Id: Ia2cb1e0997db5264d468043af31f9b41e8d0d349 Reviewed-on: https://pdfium-review.googlesource.com/33591 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pathobject.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_pathobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pathobject.cpp b/core/fpdfapi/page/cpdf_pathobject.cpp
index d8c2cb8741..39ab134c92 100644
--- a/core/fpdfapi/page/cpdf_pathobject.cpp
+++ b/core/fpdfapi/page/cpdf_pathobject.cpp
@@ -6,7 +6,8 @@
#include "core/fpdfapi/page/cpdf_pathobject.h"
-CPDF_PathObject::CPDF_PathObject() : m_FillType(0), m_bStroke(false) {}
+CPDF_PathObject::CPDF_PathObject(int32_t content_stream)
+ : CPDF_PageObject(content_stream), m_FillType(0), m_bStroke(false) {}
CPDF_PathObject::~CPDF_PathObject() {}