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

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

Issue 1858753003: Remove RawPtr from core/css (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 17 matching lines...) Expand all
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_PRE_FINALIZER(StyleRuleImport, dispose); 36 USING_PRE_FINALIZER(StyleRuleImport, dispose);
37 public: 37 public:
38 static RawPtr<StyleRuleImport> create(const String& href, RawPtr<MediaQueryS et>); 38 static StyleRuleImport* create(const String& href, MediaQuerySet*);
39 39
40 ~StyleRuleImport(); 40 ~StyleRuleImport();
41 41
42 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; } 42 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; }
43 void setParentStyleSheet(StyleSheetContents* sheet) { ASSERT(sheet); m_paren tStyleSheet = sheet; } 43 void setParentStyleSheet(StyleSheetContents* sheet) { ASSERT(sheet); m_paren tStyleSheet = sheet; }
44 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } 44 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; }
45 45
46 String href() const { return m_strHref; } 46 String href() const { return m_strHref; }
47 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); } 47 StyleSheetContents* styleSheet() const { return m_styleSheet.get(); }
48 48
(...skipping 24 matching lines...) Expand all
73 visitor->trace(m_ownerRule); 73 visitor->trace(m_ownerRule);
74 } 74 }
75 75
76 private: 76 private:
77 Member<StyleRuleImport> m_ownerRule; 77 Member<StyleRuleImport> m_ownerRule;
78 }; 78 };
79 79
80 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*);
81 friend class ImportedStyleSheetClient; 81 friend class ImportedStyleSheetClient;
82 82
83 StyleRuleImport(const String& href, RawPtr<MediaQuerySet>); 83 StyleRuleImport(const String& href, MediaQuerySet*);
84 84
85 void dispose(); 85 void dispose();
86 86
87 Member<StyleSheetContents> m_parentStyleSheet; 87 Member<StyleSheetContents> m_parentStyleSheet;
88 88
89 ImportedStyleSheetClient m_styleSheetClient; 89 ImportedStyleSheetClient m_styleSheetClient;
90 String m_strHref; 90 String m_strHref;
91 Member<MediaQuerySet> m_mediaQueries; 91 Member<MediaQuerySet> m_mediaQueries;
92 Member<StyleSheetContents> m_styleSheet; 92 Member<StyleSheetContents> m_styleSheet;
93 Member<CSSStyleSheetResource> m_resource; 93 Member<CSSStyleSheetResource> m_resource;
94 bool m_loading; 94 bool m_loading;
95 }; 95 };
96 96
97 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 97 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #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