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

Side by Side Diff: xfa/fde/css/fde_cssstyleselector.h

Issue 1960673003: Replace some calls to Release() with direct delete, part 1. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Another unique_ptr. Created 4 years, 7 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_path.h ('k') | xfa/fde/css/fde_cssstyleselector.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_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ 7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_
8 #define XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ 8 #define XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 CFX_MapPtrToPtr m_TagRules; 86 CFX_MapPtrToPtr m_TagRules;
87 CFX_MapPtrToPtr m_ClassRules; 87 CFX_MapPtrToPtr m_ClassRules;
88 FDE_CSSRuleData* m_pUniversalRules; 88 FDE_CSSRuleData* m_pUniversalRules;
89 FDE_CSSRuleData* m_pPersudoRules; 89 FDE_CSSRuleData* m_pPersudoRules;
90 int32_t m_iSelectors; 90 int32_t m_iSelectors;
91 }; 91 };
92 92
93 class CFDE_CSSStyleSelector : public CFX_Target { 93 class CFDE_CSSStyleSelector : public CFX_Target {
94 public: 94 public:
95 CFDE_CSSStyleSelector(); 95 CFDE_CSSStyleSelector();
96 ~CFDE_CSSStyleSelector(); 96 ~CFDE_CSSStyleSelector() override;
97
98 void Release() { delete this; }
99 97
100 void SetFontMgr(IFX_FontMgr* pFontMgr); 98 void SetFontMgr(IFX_FontMgr* pFontMgr);
101 void SetDefFontSize(FX_FLOAT fFontSize); 99 void SetDefFontSize(FX_FLOAT fFontSize);
102 100
103 FX_BOOL SetStyleSheet(FDE_CSSSTYLESHEETGROUP eType, 101 FX_BOOL SetStyleSheet(FDE_CSSSTYLESHEETGROUP eType,
104 IFDE_CSSStyleSheet* pSheet); 102 IFDE_CSSStyleSheet* pSheet);
105 FX_BOOL SetStyleSheets(FDE_CSSSTYLESHEETGROUP eType, 103 FX_BOOL SetStyleSheets(FDE_CSSSTYLESHEETGROUP eType,
106 const CFDE_CSSStyleSheetArray* pArray); 104 const CFDE_CSSStyleSheetArray* pArray);
107 void SetStylePriority(FDE_CSSSTYLESHEETGROUP eType, 105 void SetStylePriority(FDE_CSSSTYLESHEETGROUP eType,
108 FDE_CSSSTYLESHEETPRIORITY ePriority); 106 FDE_CSSSTYLESHEETPRIORITY ePriority);
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 578 }
581 579
582 uint32_t m_dwRefCount; 580 uint32_t m_dwRefCount;
583 IFX_MemoryAllocator* m_pAllocator; 581 IFX_MemoryAllocator* m_pAllocator;
584 CFDE_CSSInheritedData m_InheritedData; 582 CFDE_CSSInheritedData m_InheritedData;
585 CFDE_CSSNonInheritedData m_NonInheritedData; 583 CFDE_CSSNonInheritedData m_NonInheritedData;
586 CFX_WideStringArray m_CustomProperties; 584 CFX_WideStringArray m_CustomProperties;
587 }; 585 };
588 586
589 #endif // XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ 587 #endif // XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_
OLDNEW
« no previous file with comments | « xfa/fde/cfde_path.h ('k') | xfa/fde/css/fde_cssstyleselector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698