OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfapi/fpdf_page/cpdf_clippath.h" | 7 #include "core/fpdfapi/page/cpdf_clippath.h" |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_page/cpdf_path.h" | 11 #include "core/fpdfapi/page/cpdf_path.h" |
12 #include "core/fpdfapi/fpdf_page/cpdf_textobject.h" | 12 #include "core/fpdfapi/page/cpdf_textobject.h" |
13 #include "third_party/base/stl_util.h" | 13 #include "third_party/base/stl_util.h" |
14 | 14 |
15 #define FPDF_CLIPPATH_MAX_TEXTS 1024 | 15 #define FPDF_CLIPPATH_MAX_TEXTS 1024 |
16 | 16 |
17 CPDF_ClipPath::CPDF_ClipPath() {} | 17 CPDF_ClipPath::CPDF_ClipPath() {} |
18 | 18 |
19 CPDF_ClipPath::CPDF_ClipPath(const CPDF_ClipPath& that) : m_Ref(that.m_Ref) {} | 19 CPDF_ClipPath::CPDF_ClipPath(const CPDF_ClipPath& that) : m_Ref(that.m_Ref) {} |
20 | 20 |
21 CPDF_ClipPath::~CPDF_ClipPath() {} | 21 CPDF_ClipPath::~CPDF_ClipPath() {} |
22 | 22 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 m_PathAndTypeList = that.m_PathAndTypeList; | 121 m_PathAndTypeList = that.m_PathAndTypeList; |
122 | 122 |
123 m_TextList.resize(that.m_TextList.size()); | 123 m_TextList.resize(that.m_TextList.size()); |
124 for (size_t i = 0; i < that.m_TextList.size(); ++i) { | 124 for (size_t i = 0; i < that.m_TextList.size(); ++i) { |
125 if (that.m_TextList[i]) | 125 if (that.m_TextList[i]) |
126 m_TextList[i].reset(that.m_TextList[i]->Clone()); | 126 m_TextList[i].reset(that.m_TextList[i]->Clone()); |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 CPDF_ClipPath::PathData::~PathData() {} | 130 CPDF_ClipPath::PathData::~PathData() {} |
OLD | NEW |