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