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/fde/css/fde_cssdatatable.h" | 7 #include "xfa/fde/css/fde_cssdatatable.h" |
8 | 8 |
9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
10 #include "xfa/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPROPERTYVALUE eValue) | 914 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPROPERTYVALUE eValue) |
915 : m_eType(FDE_CSSPRIMITIVETYPE_Enum), m_eEnum(eValue) {} | 915 : m_eType(FDE_CSSPRIMITIVETYPE_Enum), m_eEnum(eValue) {} |
916 | 916 |
917 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPRIMITIVETYPE eType, | 917 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPRIMITIVETYPE eType, |
918 FX_FLOAT fValue) | 918 FX_FLOAT fValue) |
919 : m_eType(eType), m_fNumber(fValue) {} | 919 : m_eType(eType), m_fNumber(fValue) {} |
920 | 920 |
921 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPRIMITIVETYPE eType, | 921 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(FDE_CSSPRIMITIVETYPE eType, |
922 const FX_WCHAR* pValue) | 922 const FX_WCHAR* pValue) |
923 : m_eType(eType), m_pString(pValue) { | 923 : m_eType(eType), m_pString(pValue) { |
924 ASSERT(m_pString != nullptr); | 924 ASSERT(m_pString); |
925 } | 925 } |
926 | 926 |
927 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(CFDE_CSSFunction* pFunction) | 927 CFDE_CSSPrimitiveValue::CFDE_CSSPrimitiveValue(CFDE_CSSFunction* pFunction) |
928 : m_eType(FDE_CSSPRIMITIVETYPE_Function), m_pFunction(pFunction) {} | 928 : m_eType(FDE_CSSPRIMITIVETYPE_Function), m_pFunction(pFunction) {} |
929 | 929 |
930 FDE_CSSPRIMITIVETYPE CFDE_CSSPrimitiveValue::GetPrimitiveType() const { | 930 FDE_CSSPRIMITIVETYPE CFDE_CSSPrimitiveValue::GetPrimitiveType() const { |
931 return m_eType; | 931 return m_eType; |
932 } | 932 } |
933 | 933 |
934 FX_ARGB CFDE_CSSPrimitiveValue::GetRGBColor() const { | 934 FX_ARGB CFDE_CSSPrimitiveValue::GetRGBColor() const { |
(...skipping 26 matching lines...) Expand all Loading... |
961 | 961 |
962 int32_t CFDE_CSSPrimitiveValue::CountArgs() const { | 962 int32_t CFDE_CSSPrimitiveValue::CountArgs() const { |
963 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); | 963 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); |
964 return m_pFunction->CountArgs(); | 964 return m_pFunction->CountArgs(); |
965 } | 965 } |
966 | 966 |
967 IFDE_CSSValue* CFDE_CSSPrimitiveValue::GetArgs(int32_t index) const { | 967 IFDE_CSSValue* CFDE_CSSPrimitiveValue::GetArgs(int32_t index) const { |
968 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); | 968 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); |
969 return m_pFunction->GetArgs(index); | 969 return m_pFunction->GetArgs(index); |
970 } | 970 } |
OLD | NEW |