diff options
author | tsepez <tsepez@chromium.org> | 2017-01-05 09:09:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-05 09:09:49 -0800 |
commit | e4d611c9c6d882bd47b6936554bdfc5c1ea614a0 (patch) | |
tree | 0d74e49c9b56c687b343e41df8afd42e0d694dbb /xfa/fde/css/fde_cssdatatable.h | |
parent | 0ef7ba086f9e48100f9caebd0a52de478f0ada0a (diff) | |
download | pdfium-e4d611c9c6d882bd47b6936554bdfc5c1ea614a0.tar.xz |
Remove CFX_MapPtrToPtr from xfa/fde.
Fix spelling of "pseudo" along the way.
Remove some FDE_LPCxxx typedefs for the sake of clarity.
Review-Url: https://codereview.chromium.org/2616813002
Diffstat (limited to 'xfa/fde/css/fde_cssdatatable.h')
-rw-r--r-- | xfa/fde/css/fde_cssdatatable.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/xfa/fde/css/fde_cssdatatable.h b/xfa/fde/css/fde_cssdatatable.h index 260432d9fc..305b58df51 100644 --- a/xfa/fde/css/fde_cssdatatable.h +++ b/xfa/fde/css/fde_cssdatatable.h @@ -130,31 +130,33 @@ struct FDE_CSSMEDIATYPETABLE { uint16_t wHash; uint16_t wValue; }; -typedef FDE_CSSMEDIATYPETABLE const* FDE_LPCCSSMEDIATYPETABLE; -FDE_LPCCSSMEDIATYPETABLE FDE_GetCSSMediaTypeByName( + +const FDE_CSSMEDIATYPETABLE* FDE_GetCSSMediaTypeByName( const CFX_WideStringC& wsName); + struct FDE_CSSLENGTHUNITTABLE { uint16_t wHash; uint16_t wValue; }; -typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE; -FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName( + +const FDE_CSSLENGTHUNITTABLE* FDE_GetCSSLengthUnitByName( const CFX_WideStringC& wsName); + struct FDE_CSSCOLORTABLE { uint32_t dwHash; FX_ARGB dwValue; }; -typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE; -FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const CFX_WideStringC& wsName); -struct FDE_CSSPERSUDOTABLE { - FDE_CSSPERSUDO eName; +const FDE_CSSCOLORTABLE* FDE_GetCSSColorByName(const CFX_WideStringC& wsName); + +struct FDE_CSSPSEUDOTABLE { + FDE_CSSPSEUDO eName; const FX_WCHAR* pszName; uint32_t dwHash; }; -typedef FDE_CSSPERSUDOTABLE const* FDE_LPCCSSPERSUDOTABLE; -FDE_LPCCSSPERSUDOTABLE FDE_GetCSSPersudoByEnum(FDE_CSSPERSUDO ePersudo); +const FDE_CSSPSEUDOTABLE* FDE_GetCSSPseudoByEnum(FDE_CSSPSEUDO ePseudo); + bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, int32_t iValueLen, FX_FLOAT& fValue, |