| 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 "../../../include/fpdfapi/fpdf_page.h" | 7 #include "../../../include/fpdfapi/fpdf_page.h" |
| 8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
| 9 #include "../../../include/fpdfapi/fpdf_serial.h" | 9 #include "../../../include/fpdfapi/fpdf_serial.h" |
| 10 #include "pageint.h" | 10 #include "pageint.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 m_BBox = *pBBox; | 64 m_BBox = *pBBox; |
| 65 } | 65 } |
| 66 if (pStates) { | 66 if (pStates) { |
| 67 m_pCurStates->Copy(*pStates); | 67 m_pCurStates->Copy(*pStates); |
| 68 } else { | 68 } else { |
| 69 m_pCurStates->m_GeneralState.New(); | 69 m_pCurStates->m_GeneralState.New(); |
| 70 m_pCurStates->m_GraphState.New(); | 70 m_pCurStates->m_GraphState.New(); |
| 71 m_pCurStates->m_TextState.New(); | 71 m_pCurStates->m_TextState.New(); |
| 72 m_pCurStates->m_ColorState.New(); | 72 m_pCurStates->m_ColorState.New(); |
| 73 } | 73 } |
| 74 for (int i = 0; i < FX_ArraySize(m_Type3Data); ++i) { | 74 for (size_t i = 0; i < FX_ArraySize(m_Type3Data); ++i) { |
| 75 m_Type3Data[i] = 0.0; | 75 m_Type3Data[i] = 0.0; |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 | 78 |
| 79 CPDF_StreamContentParser::~CPDF_StreamContentParser() { | 79 CPDF_StreamContentParser::~CPDF_StreamContentParser() { |
| 80 ClearAllParams(); | 80 ClearAllParams(); |
| 81 for (int i = 0; i < m_StateStack.GetSize(); ++i) { | 81 for (int i = 0; i < m_StateStack.GetSize(); ++i) { |
| 82 delete (CPDF_AllStates*)m_StateStack[i]; | 82 delete (CPDF_AllStates*)m_StateStack[i]; |
| 83 } | 83 } |
| 84 FX_Free(m_pPathPoints); | 84 FX_Free(m_pPathPoints); |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 buf.AppendChar((char)code); | 1587 buf.AppendChar((char)code); |
| 1588 } | 1588 } |
| 1589 bFirst = !bFirst; | 1589 bFirst = !bFirst; |
| 1590 } | 1590 } |
| 1591 } | 1591 } |
| 1592 if (!bFirst) { | 1592 if (!bFirst) { |
| 1593 buf.AppendChar((char)code); | 1593 buf.AppendChar((char)code); |
| 1594 } | 1594 } |
| 1595 return buf.GetByteString(); | 1595 return buf.GetByteString(); |
| 1596 } | 1596 } |
| OLD | NEW |