From 27cf78d88fdb44bd246cd17bcc712225388e9134 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 14 Jun 2018 16:22:30 +0000 Subject: Rewrite content stream regeneration. Loop through the dirty page objects and streams and regenerate all streams that are dirty. Bug: pdfium:1051 Change-Id: I837b5a7cd9542b7777e7c7ae7ac9cc75f69f30b5 Reviewed-on: https://pdfium-review.googlesource.com/34330 Commit-Queue: Henrique Nakashima Reviewed-by: dsinclair --- core/fpdfapi/page/cpdf_pageobject.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi/page/cpdf_pageobject.h') diff --git a/core/fpdfapi/page/cpdf_pageobject.h b/core/fpdfapi/page/cpdf_pageobject.h index 39e7629541..3fc35aa063 100644 --- a/core/fpdfapi/page/cpdf_pageobject.h +++ b/core/fpdfapi/page/cpdf_pageobject.h @@ -65,10 +65,14 @@ class CPDF_PageObject : public CPDF_GraphicStates { // Get what content stream the object was parsed from in its page. This number // is the index of the content stream in the "Contents" array, or 0 if there // is a single content stream. If the object is newly created, - // kNoContentStream is returned. + // |kNoContentStream| is returned. + // // If the object is spread among more than one content stream, this is the // index of the last stream. int32_t GetContentStream() const { return m_ContentStream; } + void SetContentStream(int32_t new_content_stream) { + m_ContentStream = new_content_stream; + } float m_Left; float m_Right; -- cgit v1.2.3