diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 17:26:23 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-17 18:28:34 +0000 |
commit | 9342b33ec0e2b43c0ee0b94bb70f2e981c263877 (patch) | |
tree | 519e4585c8897224b4e778230876988790fbeb2a /xfa/fde/cfde_txtedtpage.cpp | |
parent | b5df8a5abc6ed986b7fb9c43103d188d32deb4e7 (diff) | |
download | pdfium-9342b33ec0e2b43c0ee0b94bb70f2e981c263877.tar.xz |
Remove redundant members in CFDE_TxtEdtEngine
This CL removes a bunch of redundant members from the text edit engine.
The change information tracking was removed as most of it was unused or
was used inconsistently.
Change-Id: I92460594e46accff0b78e1183c8574fc83ce728a
Reviewed-on: https://pdfium-review.googlesource.com/11275
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtpage.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedtpage.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/fde/cfde_txtedtpage.cpp b/xfa/fde/cfde_txtedtpage.cpp index cbc652da76..3020882c7e 100644 --- a/xfa/fde/cfde_txtedtpage.cpp +++ b/xfa/fde/cfde_txtedtpage.cpp @@ -260,22 +260,21 @@ int32_t CFDE_TxtEdtPage::LoadPage() { float fParaBreakWidth = 0.0f; if (!CFX_BreakTypeNoneOrPiece(pPiece->m_dwStatus)) { - wchar_t wRtChar = pParams->wLineBreakChar; if (TxtEdtPiece.nCount >= 2) { wchar_t wChar = pBuf->GetCharByIndex( m_nPageStart + TxtEdtPiece.nStart + TxtEdtPiece.nCount - 1); wchar_t wCharPre = pBuf->GetCharByIndex( m_nPageStart + TxtEdtPiece.nStart + TxtEdtPiece.nCount - 2); - if (wChar == wRtChar) { + if (wChar == L'\n') { fParaBreakWidth += fDefCharWidth; } - if (wCharPre == wRtChar) { + if (wCharPre == L'\n') { fParaBreakWidth += fDefCharWidth; } } else if (TxtEdtPiece.nCount >= 1) { wchar_t wChar = pBuf->GetCharByIndex( m_nPageStart + TxtEdtPiece.nStart + TxtEdtPiece.nCount - 1); - if (wChar == wRtChar) { + if (wChar == L'\n') { fParaBreakWidth += fDefCharWidth; } } |