summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_contentmarkitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_contentmarkitem.h')
-rw-r--r--core/fpdfapi/page/cpdf_contentmarkitem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_contentmarkitem.h b/core/fpdfapi/page/cpdf_contentmarkitem.h
index 6d2310e261..435aef4b10 100644
--- a/core/fpdfapi/page/cpdf_contentmarkitem.h
+++ b/core/fpdfapi/page/cpdf_contentmarkitem.h
@@ -24,19 +24,22 @@ class CPDF_ContentMarkItem : public Retainable {
explicit CPDF_ContentMarkItem(ByteString name);
~CPDF_ContentMarkItem() override;
- ByteString GetName() const { return m_MarkName; }
+ const ByteString& GetName() const { return m_MarkName; }
ParamType GetParamType() const { return m_ParamType; }
const CPDF_Dictionary* GetParam() const;
CPDF_Dictionary* GetParam();
+ const ByteString& GetPropertyName() const { return m_PropertyName; }
bool HasMCID() const;
void SetDirectDict(std::unique_ptr<CPDF_Dictionary> pDict);
- void SetPropertiesDict(CPDF_Dictionary* pDict);
+ void SetPropertiesDict(CPDF_Dictionary* pDict,
+ const ByteString& property_name);
private:
ByteString m_MarkName;
ParamType m_ParamType = None;
UnownedPtr<CPDF_Dictionary> m_pPropertiesDict;
+ ByteString m_PropertyName;
std::unique_ptr<CPDF_Dictionary> m_pDirectDict;
};