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

Side by Side Diff: core/fpdfdoc/csection.cpp

Issue 2187073005: Splitting fpdfdoc/doc_* part II. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fpdf_doc_III
Patch Set: Rebase to master Created 4 years, 4 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 | « core/fpdfdoc/cpvt_generateap.cpp ('k') | core/fpdfdoc/ctypeset.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "core/fpdfdoc/csection.h" 7 #include "core/fpdfdoc/csection.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfdoc/cline.h"
11 #include "core/fpdfdoc/cpvt_wordinfo.h" 12 #include "core/fpdfdoc/cpvt_wordinfo.h"
12 13
13 CSection::CSection(CPDF_VariableText* pVT) : m_pVT(pVT) {} 14 CSection::CSection(CPDF_VariableText* pVT) : m_pVT(pVT) {}
14 15
15 CSection::~CSection() { 16 CSection::~CSection() {
16 ResetAll(); 17 ResetAll();
17 } 18 }
18 19
19 void CSection::ResetAll() { 20 void CSection::ResetAll() {
20 ResetWordArray(); 21 ResetWordArray();
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ClearLeftWords(PlaceRange.EndPos.nWordIndex); 282 ClearLeftWords(PlaceRange.EndPos.nWordIndex);
282 } else { 283 } else {
283 ResetWordArray(); 284 ResetWordArray();
284 } 285 }
285 } 286 }
286 287
287 void CSection::ClearWord(const CPVT_WordPlace& place) { 288 void CSection::ClearWord(const CPVT_WordPlace& place) {
288 delete m_WordArray.GetAt(place.nWordIndex); 289 delete m_WordArray.GetAt(place.nWordIndex);
289 m_WordArray.RemoveAt(place.nWordIndex); 290 m_WordArray.RemoveAt(place.nWordIndex);
290 } 291 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_generateap.cpp ('k') | core/fpdfdoc/ctypeset.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698