summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/fgas_rtfbreak.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-07 14:22:42 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-03-07 20:14:55 +0000
commitf3965b72d6dd3730cab7b7847d9cc4bf8fa6e430 (patch)
tree4ac2687bd9ebc8d1d53a8fa617cc17a62f5c5ecc /xfa/fgas/layout/fgas_rtfbreak.h
parent3522b43b2fe7126fa9c437aad02eb88dfc4dd38c (diff)
downloadpdfium-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.h8
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_