| 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 "core/fpdfapi/fpdf_page/pageint.h" | 7 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 return; | 858 return; |
| 859 } | 859 } |
| 860 if (m_PathStartX != m_PathCurrentX || m_PathStartY != m_PathCurrentY) { | 860 if (m_PathStartX != m_PathCurrentX || m_PathStartY != m_PathCurrentY) { |
| 861 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_LINETO | FXPT_CLOSEFIGURE); | 861 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_LINETO | FXPT_CLOSEFIGURE); |
| 862 } else if (m_pPathPoints[m_PathPointCount - 1].m_Flag != FXPT_MOVETO) { | 862 } else if (m_pPathPoints[m_PathPointCount - 1].m_Flag != FXPT_MOVETO) { |
| 863 m_pPathPoints[m_PathPointCount - 1].m_Flag |= FXPT_CLOSEFIGURE; | 863 m_pPathPoints[m_PathPointCount - 1].m_Flag |= FXPT_CLOSEFIGURE; |
| 864 } | 864 } |
| 865 } | 865 } |
| 866 | 866 |
| 867 void CPDF_StreamContentParser::Handle_SetFlat() { | 867 void CPDF_StreamContentParser::Handle_SetFlat() { |
| 868 m_pCurStates->m_GeneralState.GetPrivateCopy()->m_Flatness = GetNumber(0); | 868 m_pCurStates->m_GeneralState.SetFlatness(GetNumber(0)); |
| 869 } | 869 } |
| 870 | 870 |
| 871 void CPDF_StreamContentParser::Handle_BeginImageData() {} | 871 void CPDF_StreamContentParser::Handle_BeginImageData() {} |
| 872 | 872 |
| 873 void CPDF_StreamContentParser::Handle_SetLineJoin() { | 873 void CPDF_StreamContentParser::Handle_SetLineJoin() { |
| 874 m_pCurStates->m_GraphState.SetLineJoin( | 874 m_pCurStates->m_GraphState.SetLineJoin( |
| 875 static_cast<CFX_GraphStateData::LineJoin>(GetInteger(0))); | 875 static_cast<CFX_GraphStateData::LineJoin>(GetInteger(0))); |
| 876 } | 876 } |
| 877 | 877 |
| 878 void CPDF_StreamContentParser::Handle_SetLineCap() { | 878 void CPDF_StreamContentParser::Handle_SetLineCap() { |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 } else { | 1673 } else { |
| 1674 PDF_ReplaceAbbr(pElement); | 1674 PDF_ReplaceAbbr(pElement); |
| 1675 } | 1675 } |
| 1676 } | 1676 } |
| 1677 break; | 1677 break; |
| 1678 } | 1678 } |
| 1679 default: | 1679 default: |
| 1680 break; | 1680 break; |
| 1681 } | 1681 } |
| 1682 } | 1682 } |
| OLD | NEW |