blob: 9c84b4ae28fbb77d114785afa16f2f3211171549 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/fpdf_page/cpdf_clippathdata.h"
#include "core/fpdfapi/fpdf_page/include/cpdf_path.h"
#include "core/fpdfapi/fpdf_page/include/cpdf_textobject.h"
CPDF_ClipPathData::CPDF_ClipPathData() {}
CPDF_ClipPathData::~CPDF_ClipPathData() {}
CPDF_ClipPathData::CPDF_ClipPathData(const CPDF_ClipPathData& src) {
m_PathAndTypeList = src.m_PathAndTypeList;
m_TextList.resize(src.m_TextList.size());
for (size_t i = 0; i < src.m_TextList.size(); ++i) {
if (src.m_TextList[i])
m_TextList[i].reset(src.m_TextList[i]->Clone());
}
}
|