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

Side by Side Diff: xfa/fxfa/app/cxfa_pieceline.h

Issue 2631703003: Avoid endless loop deleting CFGAS_GEFont. (Closed)
Patch Set: rebase Created 3 years, 11 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/fgas/font/cfgas_gefont.cpp ('k') | xfa/fxfa/app/cxfa_pieceline.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 2017 PDFium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef XFA_FXFA_APP_CXFA_PIECELINE_H_ 7 #ifndef XFA_FXFA_APP_CXFA_PIECELINE_H_
8 #define XFA_FXFA_APP_CXFA_PIECELINE_H_ 8 #define XFA_FXFA_APP_CXFA_PIECELINE_H_
9 9
10 #include <memory>
11 #include <vector>
12
10 #include "core/fxcrt/fx_basic.h" 13 #include "core/fxcrt/fx_basic.h"
11 14
12 class XFA_TextPiece; 15 class XFA_TextPiece;
13 16
14 class CXFA_PieceLine { 17 class CXFA_PieceLine {
15 public: 18 public:
16 CXFA_PieceLine(); 19 CXFA_PieceLine();
17 ~CXFA_PieceLine(); 20 ~CXFA_PieceLine();
18 21
19 CFX_ArrayTemplate<XFA_TextPiece*> m_textPieces; 22 std::vector<std::unique_ptr<XFA_TextPiece>> m_textPieces;
20 CFX_ArrayTemplate<int32_t> m_charCounts; 23 CFX_ArrayTemplate<int32_t> m_charCounts;
21 }; 24 };
22 25
23 #endif // XFA_FXFA_APP_CXFA_PIECELINE_H_ 26 #endif // XFA_FXFA_APP_CXFA_PIECELINE_H_
OLDNEW
« no previous file with comments | « xfa/fgas/font/cfgas_gefont.cpp ('k') | xfa/fxfa/app/cxfa_pieceline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698