diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-28 10:20:12 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-28 19:34:07 +0000 |
commit | fb906e34cb8e0d1030f743939cb1100ebfbcdbf0 (patch) | |
tree | 50ff7bcef68130fdd007bdbfdfdeacc402f8fe5e /xfa/fxfa/app/cxfa_textlayout.cpp | |
parent | 1026eabe4b1916c598531c3489e5d4c845cadfe2 (diff) | |
download | pdfium-fb906e34cb8e0d1030f743939cb1100ebfbcdbf0.tar.xz |
Remove unused layout styles
This Cl removes the unused layout styles from RTF Break and the supporting code.
Change-Id: I5f4ef593250be1c9b3ae32f1ae3d9ce6913abdcc
Reviewed-on: https://pdfium-review.googlesource.com/2874
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/app/cxfa_textlayout.cpp')
-rw-r--r-- | xfa/fxfa/app/cxfa_textlayout.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xfa/fxfa/app/cxfa_textlayout.cpp b/xfa/fxfa/app/cxfa_textlayout.cpp index 3441a084a2..a0e7fada82 100644 --- a/xfa/fxfa/app/cxfa_textlayout.cpp +++ b/xfa/fxfa/app/cxfa_textlayout.cpp @@ -94,8 +94,7 @@ CFX_RTFBreak* CXFA_TextLayout::CreateBreak(bool bDefault) { if (!bDefault) dwStyle |= FX_RTFLAYOUTSTYLE_Pagination; - CFX_RTFBreak* pBreak = new CFX_RTFBreak(); - pBreak->SetLayoutStyles(dwStyle); + CFX_RTFBreak* pBreak = new CFX_RTFBreak(dwStyle); pBreak->SetLineBreakChar(L'\n'); pBreak->SetLineBreakTolerance(1); pBreak->SetFont(m_textParser.GetFont(m_pTextProvider, nullptr)); @@ -1307,10 +1306,8 @@ bool CXFA_TextLayout::ToRun(const XFA_TextPiece* pPiece, FX_RTFTEXTOBJ* tr) { tr->iLength = iLength; tr->fFontSize = pPiece->fFontSize; tr->iBidiLevel = pPiece->iBidiLevel; - tr->iCharRotation = 0; tr->wLineBreakChar = L'\n'; tr->iVerticalScale = pPiece->iVerScale; - tr->dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; tr->iHorizontalScale = pPiece->iHorScale; return true; } |