summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_contentmark.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-07-13 19:10:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-13 19:10:53 +0000
commita34067721d6630975c356a621a12753bbdab1cdb (patch)
treef9ad22fb224bbeb2e0786357a031165a8d63751d /core/fpdfapi/page/cpdf_contentmark.h
parentc8a235ba4d42b67fa1bfe5f7c0dd872a3b72fc5f (diff)
downloadpdfium-a34067721d6630975c356a621a12753bbdab1cdb.tar.xz
Fix mark parameters not saved if nothing changed.
Bug: pdfium:1037 Change-Id: Ia2cd0d6ef99495dda3289988123489e3a2ad6e82 Reviewed-on: https://pdfium-review.googlesource.com/37750 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_contentmark.h')
-rw-r--r--core/fpdfapi/page/cpdf_contentmark.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_contentmark.h b/core/fpdfapi/page/cpdf_contentmark.h
index 8bbae52418..8dc98370e6 100644
--- a/core/fpdfapi/page/cpdf_contentmark.h
+++ b/core/fpdfapi/page/cpdf_contentmark.h
@@ -24,6 +24,7 @@ class CPDF_ContentMark {
std::unique_ptr<CPDF_ContentMark> Clone();
int GetMarkedContentID() const;
size_t CountItems() const;
+ bool ContainsItem(const CPDF_ContentMarkItem* pItem) const;
// The returned pointer is never null.
CPDF_ContentMarkItem* GetItem(size_t i);
@@ -45,6 +46,7 @@ class CPDF_ContentMark {
~MarkData() override;
size_t CountItems() const;
+ bool ContainsItem(const CPDF_ContentMarkItem* pItem) const;
CPDF_ContentMarkItem* GetItem(size_t index);
const CPDF_ContentMarkItem* GetItem(size_t index) const;