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

Side by Side Diff: xfa/fgas/layout/fgas_rtfbreak.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_rtfbreak.h ('k') | xfa/fgas/layout/fgas_textbreak.h » ('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_rtfbreak.h" 7 #include "xfa/fgas/layout/fgas_rtfbreak.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 rtBBoxF.height = fHeight; 1509 rtBBoxF.height = fHeight;
1510 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f); 1510 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f);
1511 } 1511 }
1512 rtArray.SetAt(i, rtBBoxF); 1512 rtArray.SetAt(i, rtBBoxF);
1513 continue; 1513 continue;
1514 } 1514 }
1515 rtArray.SetAt(i, rect); 1515 rtArray.SetAt(i, rect);
1516 } 1516 }
1517 return iLength; 1517 return iLength;
1518 } 1518 }
1519
1520 CFX_RTFPiece::CFX_RTFPiece()
1521 : m_dwStatus(FX_RTFBREAK_PieceBreak),
1522 m_iStartPos(0),
1523 m_iWidth(-1),
1524 m_iStartChar(0),
1525 m_iChars(0),
1526 m_iBidiLevel(0),
1527 m_iBidiPos(0),
1528 m_iFontSize(0),
1529 m_iFontHeight(0),
1530 m_iHorizontalScale(100),
1531 m_iVerticalScale(100),
1532 m_dwLayoutStyles(0),
1533 m_dwIdentity(0),
1534 m_pChars(NULL),
1535 m_pUserData(NULL) {}
1536
1537 CFX_RTFPiece::~CFX_RTFPiece() {
1538 Reset();
1539 }
1540
1541 CFX_RTFLine::CFX_RTFLine()
1542 : m_LinePieces(16),
1543 m_iStart(0),
1544 m_iWidth(0),
1545 m_iArabicChars(0),
1546 m_iMBCSChars(0) {}
1547
1548 CFX_RTFLine::~CFX_RTFLine() {
1549 RemoveAll();
1550 }
1551
1552 FX_RTFTEXTOBJ::FX_RTFTEXTOBJ()
1553 : pStr(nullptr),
1554 pWidths(nullptr),
1555 iLength(0),
1556 pFont(nullptr),
1557 fFontSize(12.0f),
1558 dwLayoutStyles(0),
1559 iCharRotation(0),
1560 iBidiLevel(0),
1561 pRect(nullptr),
1562 wLineBreakChar(L'\n'),
1563 iHorizontalScale(100),
1564 iVerticalScale(100) {}
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_rtfbreak.h ('k') | xfa/fgas/layout/fgas_textbreak.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698