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

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

Issue 2301263003: Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting (Closed)
Patch Set: safe bool while we're at it Created 4 years, 3 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_pageobject.cpp ('k') | core/fpdfapi/fpdf_page/include/cpdf_clippath.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 d869bc20b38111ab953e6ee75192468fea8ef361..03dd22c1342e1876bd0ddfd4de951712e93fe293 100644
--- a/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp
@@ -35,10 +35,9 @@ CPDF_PageObject::Type CPDF_ShadingObject::GetType() const {
}
void CPDF_ShadingObject::Transform(const CFX_Matrix& matrix) {
- if (m_ClipPath) {
- m_ClipPath.GetPrivateCopy();
+ if (m_ClipPath)
m_ClipPath.Transform(matrix);
- }
+
m_Matrix.Concat(matrix);
if (m_ClipPath) {
CalcBoundingBox();
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_pageobject.cpp ('k') | core/fpdfapi/fpdf_page/include/cpdf_clippath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698