| 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_allstates.h" | 7 #include "core/fpdfapi/fpdf_page/cpdf_allstates.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_page/pageint.h" | 9 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 m_TextX = m_TextY = m_TextLineX = m_TextLineY = 0; | 23 m_TextX = m_TextY = m_TextLineX = m_TextLineY = 0; |
| 24 m_TextLeading = 0; | 24 m_TextLeading = 0; |
| 25 m_TextRise = 0; | 25 m_TextRise = 0; |
| 26 m_TextHorzScale = 1.0f; | 26 m_TextHorzScale = 1.0f; |
| 27 } | 27 } |
| 28 | 28 |
| 29 CPDF_AllStates::~CPDF_AllStates() {} | 29 CPDF_AllStates::~CPDF_AllStates() {} |
| 30 | 30 |
| 31 void CPDF_AllStates::Copy(const CPDF_AllStates& src) { | 31 void CPDF_AllStates::Copy(const CPDF_AllStates& src) { |
| 32 CopyStates(src); | 32 CopyStates(src); |
| 33 m_TextMatrix.Copy(src.m_TextMatrix); | 33 m_TextMatrix = src.m_TextMatrix; |
| 34 m_ParentMatrix.Copy(src.m_ParentMatrix); | 34 m_ParentMatrix = src.m_ParentMatrix; |
| 35 m_CTM.Copy(src.m_CTM); | 35 m_CTM = src.m_CTM; |
| 36 m_TextX = src.m_TextX; | 36 m_TextX = src.m_TextX; |
| 37 m_TextY = src.m_TextY; | 37 m_TextY = src.m_TextY; |
| 38 m_TextLineX = src.m_TextLineX; | 38 m_TextLineX = src.m_TextLineX; |
| 39 m_TextLineY = src.m_TextLineY; | 39 m_TextLineY = src.m_TextLineY; |
| 40 m_TextLeading = src.m_TextLeading; | 40 m_TextLeading = src.m_TextLeading; |
| 41 m_TextRise = src.m_TextRise; | 41 m_TextRise = src.m_TextRise; |
| 42 m_TextHorzScale = src.m_TextHorzScale; | 42 m_TextHorzScale = src.m_TextHorzScale; |
| 43 } | 43 } |
| 44 | 44 |
| 45 void CPDF_AllStates::SetLineDash(CPDF_Array* pArray, | 45 void CPDF_AllStates::SetLineDash(CPDF_Array* pArray, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 case FXBSTR_ID('A', 'I', 'S', 0): | 169 case FXBSTR_ID('A', 'I', 'S', 0): |
| 170 m_GeneralState.SetAlphaSource(!!pObject->GetInteger()); | 170 m_GeneralState.SetAlphaSource(!!pObject->GetInteger()); |
| 171 break; | 171 break; |
| 172 case FXBSTR_ID('T', 'K', 0, 0): | 172 case FXBSTR_ID('T', 'K', 0, 0): |
| 173 m_GeneralState.SetTextKnockout(!!pObject->GetInteger()); | 173 m_GeneralState.SetTextKnockout(!!pObject->GetInteger()); |
| 174 break; | 174 break; |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 m_GeneralState.SetMatrix(m_CTM); | 177 m_GeneralState.SetMatrix(m_CTM); |
| 178 } | 178 } |
| OLD | NEW |