| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |