diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-07-11 20:55:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-11 20:55:02 +0000 |
commit | 10a7ddb596f0089ba12d0db29b5752a61919a208 (patch) | |
tree | 3a5470ac4240e50e12a22d40daf7aad866b62ac9 /core/fpdfapi/page/cpdf_contentmarkitem.cpp | |
parent | 75625a8a8a84fffcfe09a09b57d77c99b5261f7d (diff) | |
download | pdfium-10a7ddb596f0089ba12d0db29b5752a61919a208.tar.xz |
Store property name for marked content with an indirect dict.
The name of the property is now stored in the CPDF_ContentMarkItem,
which will be needed to properly write back these content marks
after a change in the stream.
Bug: pdfium:1118
Change-Id: I1296f488b35ee0684efa33d17400ed22a88383a2
Reviewed-on: https://pdfium-review.googlesource.com/37370
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_contentmarkitem.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_contentmarkitem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_contentmarkitem.cpp b/core/fpdfapi/page/cpdf_contentmarkitem.cpp index 2e715926d3..90a2930b23 100644 --- a/core/fpdfapi/page/cpdf_contentmarkitem.cpp +++ b/core/fpdfapi/page/cpdf_contentmarkitem.cpp @@ -50,7 +50,9 @@ void CPDF_ContentMarkItem::SetDirectDict( m_pDirectDict = std::move(pDict); } -void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict) { +void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict, + const ByteString& property_name) { m_ParamType = PropertiesDict; m_pPropertiesDict = pDict; + m_PropertyName = property_name; } |