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

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

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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/src/fgas/layout/fgas_rtfbreak.h" 7 #include "xfa/fgas/layout/fgas_rtfbreak.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/include/fxcrt/fx_arb.h" 11 #include "core/include/fxcrt/fx_arb.h"
12 #include "xfa/src/fgas/layout/fgas_linebreak.h" 12 #include "xfa/fgas/layout/fgas_linebreak.h"
13 #include "xfa/src/fgas/layout/fgas_unicode.h" 13 #include "xfa/fgas/layout/fgas_unicode.h"
14 14
15 namespace { 15 namespace {
16 16
17 class CFX_RTFLine { 17 class CFX_RTFLine {
18 public: 18 public:
19 CFX_RTFLine() 19 CFX_RTFLine()
20 : m_LinePieces(16), 20 : m_LinePieces(16),
21 m_iStart(0), 21 m_iStart(0),
22 m_iWidth(0), 22 m_iWidth(0),
23 m_iArabicChars(0), 23 m_iArabicChars(0),
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 rtBBoxF.height = fHeight; 1682 rtBBoxF.height = fHeight;
1683 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f); 1683 rtBBoxF.top = std::max(rtBBoxF.top, 0.0f);
1684 } 1684 }
1685 rtArray.SetAt(i, rtBBoxF); 1685 rtArray.SetAt(i, rtBBoxF);
1686 continue; 1686 continue;
1687 } 1687 }
1688 rtArray.SetAt(i, rect); 1688 rtArray.SetAt(i, rect);
1689 } 1689 }
1690 return iLength; 1690 return iLength;
1691 } 1691 }
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