diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-07 14:22:42 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-07 20:14:55 +0000 |
commit | f3965b72d6dd3730cab7b7847d9cc4bf8fa6e430 (patch) | |
tree | 4ac2687bd9ebc8d1d53a8fa617cc17a62f5c5ecc /xfa/fgas/layout/fgas_rtfbreak.h | |
parent | 3522b43b2fe7126fa9c437aad02eb88dfc4dd38c (diff) | |
download | pdfium-f3965b72d6dd3730cab7b7847d9cc4bf8fa6e430.tar.xz |
Cleanup m_RTFLine code in RTFBreak.chromium/3034
This CL cleans up the m_RTFLine and m_iReady to be easier to work with.
Change-Id: Ic8a2938d01672a4bc3f587fd144a5b63a0cee300
Reviewed-on: https://pdfium-review.googlesource.com/2935
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/fgas_rtfbreak.h')
-rw-r--r-- | xfa/fgas/layout/fgas_rtfbreak.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xfa/fgas/layout/fgas_rtfbreak.h b/xfa/fgas/layout/fgas_rtfbreak.h index 8907871f74..835430e919 100644 --- a/xfa/fgas/layout/fgas_rtfbreak.h +++ b/xfa/fgas/layout/fgas_rtfbreak.h @@ -179,8 +179,7 @@ class CFX_RTFBreak { void FontChanged(); void SetBreakStatus(); CFX_RTFChar* GetLastChar(int32_t index) const; - const CFX_RTFLine* GetRTFLine() const; - const CFX_RTFPieceArray* GetRTFPieces() const; + bool HasRTFLine() const { return m_iReady >= 0; } FX_CHARTYPE GetUnifiedCharType(FX_CHARTYPE chartype) const; int32_t GetLastPositionedTab() const; bool GetPositionedTab(int32_t* iTabPos) const; @@ -219,11 +218,10 @@ class CFX_RTFBreak { CFX_RetainPtr<CFX_Retainable> m_pUserData; FX_CHARTYPE m_eCharType; uint32_t m_dwIdentity; - CFX_RTFLine m_RTFLine1; - CFX_RTFLine m_RTFLine2; + CFX_RTFLine m_RTFLine[2]; CFX_RTFLine* m_pCurLine; - int32_t m_iReady; int32_t m_iTolerance; + int8_t m_iReady; }; #endif // XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ |