summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout/cfx_break.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-20 14:51:17 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-20 20:07:50 +0000
commit2a6482c19c5577924f73d100431acceb8c874e04 (patch)
treeed4fa39ebb58301bdcfb1670c5208bbdb8e1d36c /xfa/fgas/layout/cfx_break.cpp
parent35292ad2070aa3cabdef4ea23ffaaf38e1a7de3a (diff)
downloadpdfium-2a6482c19c5577924f73d100431acceb8c874e04.tar.xz
Cleanup unchanged values in CFX_TxtBreak
This Cl cleans up some members which are always the same value. Change-Id: Ic3feeb5cd8c8a8c3de5a7d6ec3628d32efc600ef Reviewed-on: https://pdfium-review.googlesource.com/3107 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/cfx_break.cpp')
-rw-r--r--xfa/fgas/layout/cfx_break.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/xfa/fgas/layout/cfx_break.cpp b/xfa/fgas/layout/cfx_break.cpp
index 8be1d1704a..a8280b1161 100644
--- a/xfa/fgas/layout/cfx_break.cpp
+++ b/xfa/fgas/layout/cfx_break.cpp
@@ -38,12 +38,16 @@ CFX_Break::CFX_Break(uint32_t dwLayoutStyles)
CFX_Break::~CFX_Break() {}
+void CFX_Break::Reset() {
+ m_eCharType = FX_CHARTYPE_Unknown;
+ m_Line[0].Clear();
+ m_Line[1].Clear();
+}
+
void CFX_Break::SetLayoutStyles(uint32_t dwLayoutStyles) {
m_dwLayoutStyles = dwLayoutStyles;
m_bSingleLine = (m_dwLayoutStyles & FX_LAYOUTSTYLE_SingleLine) != 0;
m_bCombText = (m_dwLayoutStyles & FX_LAYOUTSTYLE_CombText) != 0;
-
- ResetArabicContext();
}
void CFX_Break::SetHorizontalScale(int32_t iScale) {