OLD | NEW |
| (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 } | |
OLD | NEW |