Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1685)

Unified Diff: core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp

Issue 2000973002: Make CPDF_Function::Load() return an unique_ptr. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: fix build, nits Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_meshstream.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_shadingpattern.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
diff --git a/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp b/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
index 08581322916bd2361aa775ff79c2bdcf68ff8f29..de84f298650df2ecdaba93ee2fd702e8f18b546c 100644
--- a/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
@@ -22,7 +22,7 @@ CPDF_ShadingObject* CPDF_ShadingObject::Clone() const {
if (obj->m_pShading && obj->m_pShading->document()) {
CPDF_DocPageData* pDocPageData = obj->m_pShading->document()->GetPageData();
CPDF_Pattern* pattern = pDocPageData->GetPattern(
- obj->m_pShading->m_pShadingObj, m_pShading->m_bShadingObj,
+ obj->m_pShading->GetShadingObject(), m_pShading->IsShadingObject(),
obj->m_pShading->parent_matrix());
obj->m_pShading = pattern ? pattern->AsShadingPattern() : nullptr;
}
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_meshstream.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_shadingpattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698