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

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

Issue 2517163003: Use more unique_ptrs in CPDF_Image. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/page/cpdf_shadingobject.h ('k') | core/fpdfapi/page/cpdf_textobject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/page/cpdf_shadingobject.cpp
diff --git a/core/fpdfapi/page/cpdf_shadingobject.cpp b/core/fpdfapi/page/cpdf_shadingobject.cpp
index 84b6aa7cd5a9f77f59ec5cdaba2aa1a4f195c894..928b0af47ecc4f42d64b57c274933a0cd9a93d09 100644
--- a/core/fpdfapi/page/cpdf_shadingobject.cpp
+++ b/core/fpdfapi/page/cpdf_shadingobject.cpp
@@ -14,22 +14,6 @@ CPDF_ShadingObject::CPDF_ShadingObject() : m_pShading(nullptr) {}
CPDF_ShadingObject::~CPDF_ShadingObject() {}
-CPDF_ShadingObject* CPDF_ShadingObject::Clone() const {
- CPDF_ShadingObject* obj = new CPDF_ShadingObject;
- obj->CopyData(this);
-
- obj->m_pShading = m_pShading;
- if (obj->m_pShading && obj->m_pShading->document()) {
- CPDF_DocPageData* pDocPageData = obj->m_pShading->document()->GetPageData();
- CPDF_Pattern* pattern = pDocPageData->GetPattern(
- obj->m_pShading->GetShadingObject(), m_pShading->IsShadingObject(),
- obj->m_pShading->parent_matrix());
- obj->m_pShading = pattern ? pattern->AsShadingPattern() : nullptr;
- }
- obj->m_Matrix = m_Matrix;
- return obj;
-}
-
CPDF_PageObject::Type CPDF_ShadingObject::GetType() const {
return SHADING;
}
« no previous file with comments | « core/fpdfapi/page/cpdf_shadingobject.h ('k') | core/fpdfapi/page/cpdf_textobject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698