| 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/fde/cfde_txtedtparag.h" | 7 #include "xfa/fde/cfde_txtedtparag.h" |
| 8 | 8 |
| 9 #include "xfa/fde/cfde_txtedtbuf.h" | 9 #include "xfa/fde/cfde_txtedtbuf.h" |
| 10 #include "xfa/fde/cfde_txtedtbufiter.h" | 10 #include "xfa/fde/cfde_txtedtbufiter.h" |
| 11 #include "xfa/fde/cfde_txtedtengine.h" | 11 #include "xfa/fde/cfde_txtedtengine.h" |
| 12 #include "xfa/fde/ifde_txtedtengine.h" | 12 #include "xfa/fde/ifde_txtedtengine.h" |
| 13 #include "xfa/fde/ifx_chariter.h" |
| 13 #include "xfa/fgas/layout/fgas_textbreak.h" | 14 #include "xfa/fgas/layout/fgas_textbreak.h" |
| 14 #include "xfa/fde/ifx_chariter.h" | |
| 15 | 15 |
| 16 CFDE_TxtEdtParag::CFDE_TxtEdtParag(CFDE_TxtEdtEngine* pEngine) | 16 CFDE_TxtEdtParag::CFDE_TxtEdtParag(CFDE_TxtEdtEngine* pEngine) |
| 17 : m_nCharStart(0), | 17 : m_nCharStart(0), |
| 18 m_nCharCount(0), | 18 m_nCharCount(0), |
| 19 m_nLineCount(0), | 19 m_nLineCount(0), |
| 20 m_lpData(nullptr), | 20 m_lpData(nullptr), |
| 21 m_pEngine(pEngine) { | 21 m_pEngine(pEngine) { |
| 22 ASSERT(m_pEngine); | 22 ASSERT(m_pEngine); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 int32_t* pLineBaseArr = m_lpData; | 143 int32_t* pLineBaseArr = m_lpData; |
| 144 ASSERT(nLineIndex < m_nLineCount); | 144 ASSERT(nLineIndex < m_nLineCount); |
| 145 nStart = m_nCharStart; | 145 nStart = m_nCharStart; |
| 146 pLineBaseArr++; | 146 pLineBaseArr++; |
| 147 for (int32_t i = 0; i < nLineIndex; i++) { | 147 for (int32_t i = 0; i < nLineIndex; i++) { |
| 148 nStart += *pLineBaseArr; | 148 nStart += *pLineBaseArr; |
| 149 pLineBaseArr++; | 149 pLineBaseArr++; |
| 150 } | 150 } |
| 151 nCount = *pLineBaseArr; | 151 nCount = *pLineBaseArr; |
| 152 } | 152 } |
| OLD | NEW |