diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-05-03 18:48:13 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-03 18:48:13 +0000 |
commit | 2c7f71acbca135cf7a63e9fd30e45f430259807f (patch) | |
tree | 9dab3472de24ab4c75bdc1958853274c1dfe19df /xfa/fxfa/cxfa_textlayout.h | |
parent | c3f62db21878c8adc60beae5f534218b417daa40 (diff) | |
download | pdfium-2c7f71acbca135cf7a63e9fd30e45f430259807f.tar.xz |
Use pointers instead of refs in CXFA_TextLayout params.
Change-Id: Iaca5983f080d8a05d2d4e9f79c335c4ebcdc6899
Reviewed-on: https://pdfium-review.googlesource.com/31994
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_textlayout.h')
-rw-r--r-- | xfa/fxfa/cxfa_textlayout.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_textlayout.h b/xfa/fxfa/cxfa_textlayout.h index 40b64a7ca0..8329e06352 100644 --- a/xfa/fxfa/cxfa_textlayout.h +++ b/xfa/fxfa/cxfa_textlayout.h @@ -67,14 +67,14 @@ class CXFA_TextLayout { float fLineWidth, CFX_XMLNode* pXMLNode, CFX_CSSComputedStyle* pParentStyle); - bool Loader(float textWidth, float& fLinePos, bool bSavePieces); + bool Loader(float textWidth, float* pLinePos, bool bSavePieces); void LoadText(CXFA_Node* pNode, float textWidth, - float& fLinePos, + float* pLinePos, bool bSavePieces); bool LoadRichText(CFX_XMLNode* pXMLNode, float textWidth, - float& fLinePos, + float* pLinePos, const RetainPtr<CFX_CSSComputedStyle>& pParentStyle, bool bSavePieces, RetainPtr<CXFA_LinkUserData> pLinkData, @@ -82,14 +82,14 @@ class CXFA_TextLayout { bool bIsOl = false, int32_t iLiCount = 0); bool AppendChar(const WideString& wsText, - float& fLinePos, + float* pLinePos, float fSpaceAbove, bool bSavePieces); void AppendTextLine(CFX_BreakType dwStatus, - float& fLinePos, + float* pLinePos, bool bSavePieces, bool bEndBreak = false); - void EndBreak(CFX_BreakType dwStatus, float& fLinePos, bool bDefault); + void EndBreak(CFX_BreakType dwStatus, float* pLinePos, bool bDefault); bool IsEnd(bool bSavePieces); void ProcessText(WideString& wsText); void UpdateAlign(float fHeight, float fBottom); |