diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-16 11:47:20 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-16 18:21:03 +0000 |
commit | e533b93601c7e9eb328619681a78c188d1a89191 (patch) | |
tree | 0e3741cec1296a39e478c67eeac3ecc9c000fc24 /xfa/fde/tto/fde_textout.cpp | |
parent | c9819a972830e9d1210d9d8f5c81d9f03f7c90a9 (diff) | |
download | pdfium-e533b93601c7e9eb328619681a78c188d1a89191.tar.xz |
Create common base class for TxtBreak and RTFBreak.
This CL starts extracting common members between the two break classes
into a common base class. This also normalizes some of the member names
to be the same across classes.
Change-Id: I7f4e5065f2dac79eb4ebba397458236cc0609d38
Reviewed-on: https://pdfium-review.googlesource.com/3058
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/tto/fde_textout.cpp')
-rw-r--r-- | xfa/fde/tto/fde_textout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fde/tto/fde_textout.cpp b/xfa/fde/tto/fde_textout.cpp index f816176841..6808ff0c6c 100644 --- a/xfa/fde/tto/fde_textout.cpp +++ b/xfa/fde/tto/fde_textout.cpp @@ -67,14 +67,14 @@ void CFDE_TextOut::SetStyles(uint32_t dwStyles) { m_dwStyles = dwStyles; m_dwTxtBkStyles = 0; if (dwStyles & FDE_TTOSTYLE_SingleLine) - m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_SingleLine; + m_dwTxtBkStyles |= FX_LAYOUTSTYLE_SingleLine; m_pTxtBreak->SetLayoutStyles(m_dwTxtBkStyles); } void CFDE_TextOut::SetTabWidth(float fTabWidth) { ASSERT(fTabWidth > 1.0f); - m_pTxtBreak->SetTabWidth(fTabWidth, false); + m_pTxtBreak->SetTabWidth(fTabWidth); } void CFDE_TextOut::SetEllipsisString(const CFX_WideString& wsEllipsis) { |