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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_clippathdata.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 unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_clippathdata.h ('k') | core/fpdfapi/fpdf_page/cpdf_pageobject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #include "core/fpdfapi/fpdf_page/cpdf_clippathdata.h"
8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_path.h"
10 #include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h"
11
12 CPDF_ClipPathData::CPDF_ClipPathData() {}
13
14 CPDF_ClipPathData::~CPDF_ClipPathData() {}
15
16 CPDF_ClipPathData::CPDF_ClipPathData(const CPDF_ClipPathData& src) {
17 m_PathAndTypeList = src.m_PathAndTypeList;
18
19 m_TextList.resize(src.m_TextList.size());
20 for (size_t i = 0; i < src.m_TextList.size(); ++i) {
21 if (src.m_TextList[i])
22 m_TextList[i].reset(src.m_TextList[i]->Clone());
23 }
24 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_clippathdata.h ('k') | core/fpdfapi/fpdf_page/cpdf_pageobject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698