From a5a3de93dd6e15740a337a28640d13407cb0368f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 13 Mar 2017 10:14:21 -0400 Subject: Remove unused defines from TextBreak. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl removes the unused TXTLAYOUTSTYLE and TXTCHARTYLE defines from fgas_textbreak. This also ripples and removes some of the defined styles from fde_textout as well. Change-Id: Ic647e97694366685bbad367e0a7ba61a00416598 Reviewed-on: https://pdfium-review.googlesource.com/2942 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- xfa/fde/cfde_txtedtengine.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'xfa/fde/cfde_txtedtengine.cpp') diff --git a/xfa/fde/cfde_txtedtengine.cpp b/xfa/fde/cfde_txtedtengine.cpp index 9d9fed5ab1..8fd521a66b 100644 --- a/xfa/fde/cfde_txtedtengine.cpp +++ b/xfa/fde/cfde_txtedtengine.cpp @@ -1006,20 +1006,11 @@ void CFDE_TxtEdtEngine::UpdateTxtBreak() { else dwStyle |= FX_TXTLAYOUTSTYLE_SingleLine; - dwStyle &= ~FX_TXTLAYOUTSTYLE_VerticalLayout; - dwStyle &= ~FX_TXTLAYOUTSTYLE_ReverseLine; - dwStyle &= ~FX_TXTLAYOUTSTYLE_RTLReadingOrder; - if (m_Param.dwLayoutStyles & FDE_TEXTEDITLAYOUT_CombText) dwStyle |= FX_TXTLAYOUTSTYLE_CombText; else dwStyle &= ~FX_TXTLAYOUTSTYLE_CombText; - dwStyle &= ~FX_TXTLAYOUTSTYLE_VerticalChars; - dwStyle &= ~FX_TXTLAYOUTSTYLE_ExpandTab; - dwStyle &= ~FX_TXTLAYOUTSTYLE_ArabicContext; - dwStyle &= ~FX_TXTLAYOUTSTYLE_ArabicShapes; - m_pTextBreak->SetLayoutStyles(dwStyle); uint32_t dwAligment = 0; if (m_Param.dwAlignment & FDE_TEXTEDITALIGN_Justified) -- cgit v1.2.3