diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-19 10:27:58 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-19 15:49:07 +0000 |
commit | 95bec8046a28928df627ce4d48eee8b209b3e36e (patch) | |
tree | 46913cf24aacfc88a89bb55edcce8e3a2e724c4b /xfa/fde/css/fde_cssdatatable.h | |
parent | dd533baad22f5143c093b98e98463a0dc62899ea (diff) | |
download | pdfium-95bec8046a28928df627ce4d48eee8b209b3e36e.tar.xz |
Split fde/css files into individual class files.
This CL splits the files in xfa/fde/css into class per file and renames any
needed files to match the class names.
Update some of the classes to use std::stack.
Change-Id: I4eca0fb3556d949a15a873bb0f0fd732f47e4fb1
Reviewed-on: https://pdfium-review.googlesource.com/2253
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fde/css/fde_cssdatatable.h')
-rw-r--r-- | xfa/fde/css/fde_cssdatatable.h | 47 |
1 files changed, 15 insertions, 32 deletions
diff --git a/xfa/fde/css/fde_cssdatatable.h b/xfa/fde/css/fde_cssdatatable.h index f2cc2b45d4..4769f16658 100644 --- a/xfa/fde/css/fde_cssdatatable.h +++ b/xfa/fde/css/fde_cssdatatable.h @@ -25,65 +25,48 @@ struct FDE_CSSPropertyTable { uint32_t dwType; }; -const FDE_CSSPropertyTable* FDE_GetCSSPropertyByName( - const CFX_WideStringC& wsName); -const FDE_CSSPropertyTable* FDE_GetCSSPropertyByEnum(FDE_CSSProperty eName); - struct FDE_CSSPropertyValueTable { FDE_CSSPropertyValue eName; const FX_WCHAR* pszName; uint32_t dwHash; }; -const FDE_CSSPropertyValueTable* FDE_GetCSSPropertyValueByName( - const CFX_WideStringC& wsName); -const FDE_CSSPropertyValueTable* FDE_GetCSSPropertyValueByEnum( - FDE_CSSPropertyValue eName); - struct FDE_CSSMEDIATYPETABLE { uint16_t wHash; uint16_t wValue; }; -const FDE_CSSMEDIATYPETABLE* FDE_GetCSSMediaTypeByName( - const CFX_WideStringC& wsName); - struct FDE_CSSLengthUnitTable { uint16_t wHash; FDE_CSSNumberType wValue; }; -const FDE_CSSLengthUnitTable* FDE_GetCSSLengthUnitByName( - const CFX_WideStringC& wsName); - struct FDE_CSSCOLORTABLE { uint32_t dwHash; FX_ARGB dwValue; }; -const FDE_CSSCOLORTABLE* FDE_GetCSSColorByName(const CFX_WideStringC& wsName); - struct FDE_CSSPseudoTable { FDE_CSSPseudo eName; const FX_WCHAR* pszName; uint32_t dwHash; }; -const FDE_CSSPseudoTable* FDE_GetCSSPseudoByEnum(FDE_CSSPseudo ePseudo); +const FDE_CSSPropertyTable* FDE_GetCSSPropertyByName( + const CFX_WideStringC& wsName); +const FDE_CSSPropertyTable* FDE_GetCSSPropertyByEnum(FDE_CSSProperty eName); + +const FDE_CSSPropertyValueTable* FDE_GetCSSPropertyValueByName( + const CFX_WideStringC& wsName); -bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, - int32_t iValueLen, - FX_FLOAT& fValue, - FDE_CSSNumberType& eUnit); -bool FDE_ParseCSSString(const FX_WCHAR* pszValue, - int32_t iValueLen, - int32_t* iOffset, - int32_t* iLength); -bool FDE_ParseCSSColor(const FX_WCHAR* pszValue, - int32_t iValueLen, - FX_ARGB& dwColor); -bool FDE_ParseCSSURI(const FX_WCHAR* pszValue, - int32_t* iOffset, - int32_t* iLength); +const FDE_CSSMEDIATYPETABLE* FDE_GetCSSMediaTypeByName( + const CFX_WideStringC& wsName); + +const FDE_CSSLengthUnitTable* FDE_GetCSSLengthUnitByName( + const CFX_WideStringC& wsName); + +const FDE_CSSCOLORTABLE* FDE_GetCSSColorByName(const CFX_WideStringC& wsName); + +const FDE_CSSPseudoTable* FDE_GetCSSPseudoByEnum(FDE_CSSPseudo ePseudo); #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |