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/fx_ext.h" |
10 #include "xfa/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 uint8_t Hex2Dec(uint8_t hexHigh, uint8_t hexLow) { | 14 uint8_t Hex2Dec(uint8_t hexHigh, uint8_t hexLow) { |
15 return (FXSYS_toHexDigit(hexHigh) << 4) + FXSYS_toHexDigit(hexLow); | 15 return (FXSYS_toHexDigit(hexHigh) << 4) + FXSYS_toHexDigit(hexLow); |
16 } | 16 } |
17 | 17 |
18 } // namespace | 18 } // namespace |
19 | 19 |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 960 |
961 int32_t CFDE_CSSPrimitiveValue::CountArgs() const { | 961 int32_t CFDE_CSSPrimitiveValue::CountArgs() const { |
962 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); | 962 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); |
963 return m_pFunction->CountArgs(); | 963 return m_pFunction->CountArgs(); |
964 } | 964 } |
965 | 965 |
966 IFDE_CSSValue* CFDE_CSSPrimitiveValue::GetArgs(int32_t index) const { | 966 IFDE_CSSValue* CFDE_CSSPrimitiveValue::GetArgs(int32_t index) const { |
967 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); | 967 ASSERT(m_eType == FDE_CSSPRIMITIVETYPE_Function); |
968 return m_pFunction->GetArgs(index); | 968 return m_pFunction->GetArgs(index); |
969 } | 969 } |
OLD | NEW |