diff options
author | tsepez <tsepez@chromium.org> | 2016-09-02 17:34:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-02 17:34:21 -0700 |
commit | d21f22e2c07d61bf15ee3af91869901adb6f0cde (patch) | |
tree | 5277acb7de48541f5a39f57f3017a69b3ecfcec3 /core/fpdfapi/fpdf_page/cpdf_pageobject.cpp | |
parent | 6296f2d501e2749d98e890ed722f923ee584c9ca (diff) | |
download | pdfium-d21f22e2c07d61bf15ee3af91869901adb6f0cde.tar.xz |
Make CPDF_ClipPath have a CPDF_ClipPathData rather than inheriting.
Make Data private to the ClipPath class which manages it
transparently for its callers. This prevents the callers
from having to remember to make a copy before dirtying the
shared data, since the operations that modify state will do
this under the covers for us.
Review-Url: https://codereview.chromium.org/2301263003
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_pageobject.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_pageobject.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pageobject.cpp b/core/fpdfapi/fpdf_page/cpdf_pageobject.cpp index 1ce83a85bc..4566d97771 100644 --- a/core/fpdfapi/fpdf_page/cpdf_pageobject.cpp +++ b/core/fpdfapi/fpdf_page/cpdf_pageobject.cpp @@ -81,7 +81,6 @@ void CPDF_PageObject::CopyData(const CPDF_PageObject* pSrc) { void CPDF_PageObject::TransformClipPath(CFX_Matrix& matrix) { if (!m_ClipPath) return; - m_ClipPath.GetPrivateCopy(); m_ClipPath.Transform(matrix); } |