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

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

Issue 2612923002: Remove CFX_MapPtrToPtr from xfa/fxfa. (Closed)
Patch Set: endless loop 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 | « no previous file | xfa/fxfa/app/xfa_textlayout.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 #ifndef XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ 7 #ifndef XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ 8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 private: 127 private:
128 void InitCSSData(CXFA_TextProvider* pTextProvider); 128 void InitCSSData(CXFA_TextProvider* pTextProvider);
129 void ParseRichText(CFDE_XMLNode* pXMLNode, 129 void ParseRichText(CFDE_XMLNode* pXMLNode,
130 IFDE_CSSComputedStyle* pParentStyle); 130 IFDE_CSSComputedStyle* pParentStyle);
131 void ParseTagInfo(CFDE_XMLNode* pXMLNode, CXFA_CSSTagProvider& tagProvider); 131 void ParseTagInfo(CFDE_XMLNode* pXMLNode, CXFA_CSSTagProvider& tagProvider);
132 IFDE_CSSStyleSheet* LoadDefaultSheetStyle(); 132 IFDE_CSSStyleSheet* LoadDefaultSheetStyle();
133 IFDE_CSSComputedStyle* CreateStyle(IFDE_CSSComputedStyle* pParentStyle); 133 IFDE_CSSComputedStyle* CreateStyle(IFDE_CSSComputedStyle* pParentStyle);
134 std::unique_ptr<IFX_MemoryAllocator> m_pAllocator; 134 std::unique_ptr<IFX_MemoryAllocator> m_pAllocator;
135 std::unique_ptr<CFDE_CSSStyleSelector> m_pSelector; 135 std::unique_ptr<CFDE_CSSStyleSelector> m_pSelector;
136 IFDE_CSSStyleSheet* m_pUASheet; 136 IFDE_CSSStyleSheet* m_pUASheet;
137 CFX_MapPtrTemplate<CFDE_XMLNode*, CXFA_TextParseContext*> 137 std::map<CFDE_XMLNode*, CXFA_TextParseContext*> m_mapXMLNodeToParseContext;
138 m_mapXMLNodeToParseContext;
139 }; 138 };
140 139
141 class CXFA_LoaderContext { 140 class CXFA_LoaderContext {
142 public: 141 public:
143 CXFA_LoaderContext(); 142 CXFA_LoaderContext();
144 ~CXFA_LoaderContext(); 143 ~CXFA_LoaderContext();
145 144
146 bool m_bSaveLineHeight; 145 bool m_bSaveLineHeight;
147 FX_FLOAT m_fWidth; 146 FX_FLOAT m_fWidth;
148 FX_FLOAT m_fHeight; 147 FX_FLOAT m_fHeight;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 std::unique_ptr<CXFA_LoaderContext> m_pLoader; 345 std::unique_ptr<CXFA_LoaderContext> m_pLoader;
347 int32_t m_iLines; 346 int32_t m_iLines;
348 FX_FLOAT m_fMaxWidth; 347 FX_FLOAT m_fMaxWidth;
349 CXFA_TextParser m_textParser; 348 CXFA_TextParser m_textParser;
350 CXFA_PieceLineArray m_pieceLines; 349 CXFA_PieceLineArray m_pieceLines;
351 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext; 350 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext;
352 bool m_bBlockContinue; 351 bool m_bBlockContinue;
353 }; 352 };
354 353
355 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ 354 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/app/xfa_textlayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698