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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_Edit.cpp

Issue 1700183002: Remove CFX_PtrList from renderer main loop. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 10 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 | « fpdfsdk/src/javascript/Document.cpp ('k') | no next file » | 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 "fpdfsdk/include/pdfwindow/PWL_Edit.h" 7 #include "fpdfsdk/include/pdfwindow/PWL_Edit.h"
8 8
9 #include "core/include/fxcrt/fx_safe_types.h" 9 #include "core/include/fxcrt/fx_safe_types.h"
10 #include "core/include/fxcrt/fx_xml.h" 10 #include "core/include/fxcrt/fx_xml.h"
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 } while (pIterator->PrevWord()); 1159 } while (pIterator->PrevWord());
1160 } 1160 }
1161 1161
1162 range.Set(wpStart, wpEnd); 1162 range.Set(wpStart, wpEnd);
1163 } 1163 }
1164 1164
1165 return range; 1165 return range;
1166 } 1166 }
1167 1167
1168 void CPWL_Edit::GeneratePageObjects( 1168 void CPWL_Edit::GeneratePageObjects(
1169 CPDF_PageObjectHolder* pPageObjects, 1169 CPDF_PageObjectHolder* pObjectHolder,
1170 const CPDF_Point& ptOffset, 1170 const CPDF_Point& ptOffset,
1171 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { 1171 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) {
1172 IFX_Edit::GeneratePageObjects( 1172 IFX_Edit::GeneratePageObjects(
1173 pPageObjects, m_pEdit, ptOffset, NULL, 1173 pObjectHolder, m_pEdit, ptOffset, NULL,
1174 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), 1174 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()),
1175 ObjArray); 1175 ObjArray);
1176 } 1176 }
1177 1177
1178 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pPageObjects, 1178 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder,
1179 const CPDF_Point& ptOffset) { 1179 const CPDF_Point& ptOffset) {
1180 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; 1180 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray;
1181 IFX_Edit::GeneratePageObjects( 1181 IFX_Edit::GeneratePageObjects(
1182 pPageObjects, m_pEdit, ptOffset, NULL, 1182 pObjectHolder, m_pEdit, ptOffset, NULL,
1183 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), 1183 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()),
1184 ObjArray); 1184 ObjArray);
1185 } 1185 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698