diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-18 17:37:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-18 17:37:42 +0000 |
commit | 2486456feae06bd0dd2254f1569cf2cfb8d04104 (patch) | |
tree | 7235e10f956c1e4bc54e733c9730108a8d05c5c9 /xfa/fxfa/cxfa_loadercontext.h | |
parent | 631a9e726578659ade3c37c4c274a1c5a1ee9a7b (diff) | |
download | pdfium-2486456feae06bd0dd2254f1569cf2cfb8d04104.tar.xz |
Convert CXFA_LoaderContext to a struct.
It only has members and they are all public. Initialize them in the
header, remove an unused one, and remove the "m_" prefix.
Change-Id: Ia4a0b673794f82afddfc6c1bd3a73700cb968259
Reviewed-on: https://pdfium-review.googlesource.com/c/44255
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_loadercontext.h')
-rw-r--r-- | xfa/fxfa/cxfa_loadercontext.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/xfa/fxfa/cxfa_loadercontext.h b/xfa/fxfa/cxfa_loadercontext.h index a6d8fb0eeb..87a795be9c 100644 --- a/xfa/fxfa/cxfa_loadercontext.h +++ b/xfa/fxfa/cxfa_loadercontext.h @@ -9,32 +9,31 @@ #include <vector> -#include "core/fxcrt/css/cfx_csscomputedstyle.h" #include "core/fxcrt/fx_system.h" +#include "core/fxcrt/retain_ptr.h" #include "core/fxcrt/unowned_ptr.h" +class CFX_CSSComputedStyle; class CFX_XMLNode; class CXFA_Node; -class CXFA_LoaderContext { - public: +struct CXFA_LoaderContext { CXFA_LoaderContext(); ~CXFA_LoaderContext(); - bool m_bSaveLineHeight; - float m_fWidth; - float m_fHeight; - float m_fLastPos; - float m_fStartLineOffset; - int32_t m_iChar; - int32_t m_iLines; - int32_t m_iTotalLines; - uint32_t m_dwFlags; - UnownedPtr<const CFX_XMLNode> m_pXMLNode; - UnownedPtr<CXFA_Node> m_pNode; - RetainPtr<CFX_CSSComputedStyle> m_pParentStyle; - std::vector<float> m_lineHeights; - std::vector<float> m_BlocksHeight; + bool bSaveLineHeight = false; + float fWidth = 0; + float fHeight = 0; + float fLastPos = 0; + float fStartLineOffset = 0; + int32_t iChar = 0; + int32_t iTotalLines = -1; + uint32_t dwFlags = 0; + UnownedPtr<const CFX_XMLNode> pXMLNode; + UnownedPtr<CXFA_Node> pNode; + RetainPtr<CFX_CSSComputedStyle> pParentStyle; + std::vector<float> lineHeights; + std::vector<float> blocksHeight; }; #endif // XFA_FXFA_CXFA_LOADERCONTEXT_H_ |