Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: xfa/fgas/layout/fgas_textbreak.cpp

Issue 2072803002: Make code compile with clang_use_chrome_plugin (final) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fgas/layout/fgas_textbreak.h ('k') | xfa/fxgraphics/cfx_graphics.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fgas/layout/fgas_textbreak.h" 7 #include "xfa/fgas/layout/fgas_textbreak.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 rtBBoxF.height = fHeight; 1655 rtBBoxF.height = fHeight;
1656 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f); 1656 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f);
1657 } 1657 }
1658 rtArray.SetAt(i, rtBBoxF); 1658 rtArray.SetAt(i, rtBBoxF);
1659 continue; 1659 continue;
1660 } 1660 }
1661 rtArray.SetAt(i, rect); 1661 rtArray.SetAt(i, rect);
1662 } 1662 }
1663 return iLength; 1663 return iLength;
1664 } 1664 }
1665
1666 FX_TXTRUN::FX_TXTRUN()
1667 : pAccess(nullptr),
1668 pIdentity(nullptr),
1669 pWidths(nullptr),
1670 iLength(0),
1671 pFont(nullptr),
1672 fFontSize(12),
1673 dwStyles(0),
1674 iHorizontalScale(100),
1675 iVerticalScale(100),
1676 iCharRotation(0),
1677 dwCharStyles(0),
1678 pRect(nullptr),
1679 wLineBreakChar(L'\n'),
1680 bSkipSpace(TRUE) {}
1681
1682 FX_TXTRUN::~FX_TXTRUN() {}
1683
1684 FX_TXTRUN::FX_TXTRUN(const FX_TXTRUN& other) = default;
1685
1686 CFX_TxtPiece::CFX_TxtPiece()
1687 : m_dwStatus(FX_TXTBREAK_PieceBreak),
1688 m_iStartPos(0),
1689 m_iWidth(-1),
1690 m_iStartChar(0),
1691 m_iChars(0),
1692 m_iBidiLevel(0),
1693 m_iBidiPos(0),
1694 m_iHorizontalScale(100),
1695 m_iVerticalScale(100),
1696 m_dwCharStyles(0),
1697 m_pChars(NULL),
1698 m_pUserData(NULL) {}
1699
1700 CFX_TxtLine::CFX_TxtLine(int32_t iBlockSize)
1701 : m_iStart(0), m_iWidth(0), m_iArabicChars(0) {
1702 m_pLineChars = new CFX_TxtCharArray;
1703 m_pLinePieces = new CFX_TxtPieceArray(16);
1704 }
1705
1706 CFX_TxtLine::~CFX_TxtLine() {
1707 RemoveAll();
1708 delete m_pLineChars;
1709 delete m_pLinePieces;
1710 }
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_textbreak.h ('k') | xfa/fxgraphics/cfx_graphics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698