OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 "xfa/src/fde/fde_iterator.h" | 7 #include "xfa/fde/fde_iterator.h" |
8 | 8 |
9 #include "xfa/src/fgas/crt/fgas_utils.h" | 9 #include "xfa/fgas/crt/fgas_utils.h" |
10 | 10 |
11 IFDE_VisualSetIterator* IFDE_VisualSetIterator::Create() { | 11 IFDE_VisualSetIterator* IFDE_VisualSetIterator::Create() { |
12 return new CFDE_VisualSetIterator; | 12 return new CFDE_VisualSetIterator; |
13 } | 13 } |
14 CFDE_VisualSetIterator::CFDE_VisualSetIterator() : m_dwFilter(0) {} | 14 CFDE_VisualSetIterator::CFDE_VisualSetIterator() : m_dwFilter(0) {} |
15 CFDE_VisualSetIterator::~CFDE_VisualSetIterator() { | 15 CFDE_VisualSetIterator::~CFDE_VisualSetIterator() { |
16 m_CanvasStack.RemoveAll(); | 16 m_CanvasStack.RemoveAll(); |
17 } | 17 } |
18 FX_BOOL CFDE_VisualSetIterator::AttachCanvas(IFDE_CanvasSet* pCanvas) { | 18 FX_BOOL CFDE_VisualSetIterator::AttachCanvas(IFDE_CanvasSet* pCanvas) { |
19 FXSYS_assert(pCanvas != NULL); | 19 FXSYS_assert(pCanvas != NULL); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 if (ppCanvasSet) { | 90 if (ppCanvasSet) { |
91 *ppCanvasSet = NULL; | 91 *ppCanvasSet = NULL; |
92 } | 92 } |
93 if (phCanvasObj) { | 93 if (phCanvasObj) { |
94 *phCanvasObj = NULL; | 94 *phCanvasObj = NULL; |
95 } | 95 } |
96 pVisualSet = NULL; | 96 pVisualSet = NULL; |
97 return NULL; | 97 return NULL; |
98 } | 98 } |
OLD | NEW |