Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: xfa/fde/css/fde_cssdatatable.cpp

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | xfa/fde/css/fde_cssstylesheet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fde/css/fde_cssstylesheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698