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

Side by Side Diff: xfa/fde/cfde_txtedtparag.cpp

Issue 2337293002: Sort include entries. (Closed)
Patch Set: Created 4 years, 3 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/fde/cfde_txtedtpage.cpp ('k') | xfa/fde/xml/fde_xml_imp_unittest.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/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
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 }
OLDNEW
« no previous file with comments | « xfa/fde/cfde_txtedtpage.cpp ('k') | xfa/fde/xml/fde_xml_imp_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698