diff options
Diffstat (limited to 'chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp')
-rw-r--r-- | chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp b/chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp index 8eba4aa15f0..3347a1d149f 100644 --- a/chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp +++ b/chromium/third_party/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp @@ -18,7 +18,7 @@ CPDF_ContentMarkItem::~CPDF_ContentMarkItem() {} const CPDF_Dictionary* CPDF_ContentMarkItem::GetParam() const { switch (m_ParamType) { case PropertiesDict: - return m_pPropertiesDict.Get(); + return m_pPropertiesHolder->GetDictFor(m_PropertyName); case DirectDict: return m_pDirectDict.get(); case None: @@ -43,9 +43,10 @@ void CPDF_ContentMarkItem::SetDirectDict( m_pDirectDict = std::move(pDict); } -void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict, - const ByteString& property_name) { +void CPDF_ContentMarkItem::SetPropertiesHolder( + CPDF_Dictionary* pHolder, + const ByteString& property_name) { m_ParamType = PropertiesDict; - m_pPropertiesDict = pDict; + m_pPropertiesHolder = pHolder; m_PropertyName = property_name; } |