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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRuleImport.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 #include "core/fetch/StyleSheetResourceClient.h" 26 #include "core/fetch/StyleSheetResourceClient.h"
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class CSSStyleSheetResource; 31 class CSSStyleSheetResource;
32 class MediaQuerySet; 32 class MediaQuerySet;
33 class StyleSheetContents; 33 class StyleSheetContents;
34 34
35 class StyleRuleImport : public StyleRuleBase { 35 class StyleRuleImport : public StyleRuleBase {
36 USING_FAST_MALLOC_WILL_BE_REMOVED(StyleRuleImport); 36 USING_PRE_FINALIZER(StyleRuleImport, dispose);
37 WILL_BE_USING_PRE_FINALIZER(StyleRuleImport, dispose);
38 public: 37 public:
39 static PassRefPtrWillBeRawPtr<StyleRuleImport> create(const String& href, Pa ssRefPtrWillBeRawPtr<MediaQuerySet>); 38 static RawPtr<StyleRuleImport> create(const String& href, RawPtr<MediaQueryS et>);
40 39
41 ~StyleRuleImport(); 40 ~StyleRuleImport();
42 41
43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; } 42 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; }
44 void setParentStyleSheet(StyleSheetContents* sheet) { ASSERT(sheet); m_paren tStyleSheet = sheet; } 43 void setParentStyleSheet(StyleSheetContents* sheet) { ASSERT(sheet); m_paren tStyleSheet = sheet; }
45 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } 44 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; }
46 45
47 String href() const { return m_strHref; } 46 String href() const { return m_strHref; }
48 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 47 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); }
49 48
(...skipping 18 matching lines...) Expand all
68 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet); 67 m_ownerRule->setCSSStyleSheet(href, baseURL, charset, sheet);
69 } 68 }
70 String debugName() const override { return "ImportedStyleSheetClient"; } 69 String debugName() const override { return "ImportedStyleSheetClient"; }
71 70
72 DEFINE_INLINE_TRACE() 71 DEFINE_INLINE_TRACE()
73 { 72 {
74 visitor->trace(m_ownerRule); 73 visitor->trace(m_ownerRule);
75 } 74 }
76 75
77 private: 76 private:
78 RawPtrWillBeMember<StyleRuleImport> m_ownerRule; 77 Member<StyleRuleImport> m_ownerRule;
79 }; 78 };
80 79
81 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*); 80 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*);
82 friend class ImportedStyleSheetClient; 81 friend class ImportedStyleSheetClient;
83 82
84 StyleRuleImport(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet>); 83 StyleRuleImport(const String& href, RawPtr<MediaQuerySet>);
85 84
86 void dispose(); 85 void dispose();
87 86
88 RawPtrWillBeMember<StyleSheetContents> m_parentStyleSheet; 87 Member<StyleSheetContents> m_parentStyleSheet;
89 88
90 ImportedStyleSheetClient m_styleSheetClient; 89 ImportedStyleSheetClient m_styleSheetClient;
91 String m_strHref; 90 String m_strHref;
92 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; 91 Member<MediaQuerySet> m_mediaQueries;
93 RefPtrWillBeMember<StyleSheetContents> m_styleSheet; 92 Member<StyleSheetContents> m_styleSheet;
94 RefPtrWillBeMember<CSSStyleSheetResource> m_resource; 93 Member<CSSStyleSheetResource> m_resource;
95 bool m_loading; 94 bool m_loading;
96 }; 95 };
97 96
98 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 97 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
99 98
100 } // namespace blink 99 } // namespace blink
101 100
102 #endif 101 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.cpp ('k') | third_party/WebKit/Source/core/css/StyleRuleImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698