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

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

Issue 2873433003: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: Created 3 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
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 18 matching lines...) Expand all
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 37
38 public: 38 public:
39 static StyleRuleImport* create(const String& href, MediaQuerySet*); 39 static StyleRuleImport* create(const String& href, RefPtr<MediaQuerySet>);
40 40
41 ~StyleRuleImport(); 41 ~StyleRuleImport();
42 42
43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; } 43 StyleSheetContents* parentStyleSheet() const { return m_parentStyleSheet; }
44 void setParentStyleSheet(StyleSheetContents* sheet) { 44 void setParentStyleSheet(StyleSheetContents* sheet) {
45 ASSERT(sheet); 45 ASSERT(sheet);
46 m_parentStyleSheet = sheet; 46 m_parentStyleSheet = sheet;
47 } 47 }
48 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; } 48 void clearParentStyleSheet() { m_parentStyleSheet = nullptr; }
49 49
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 private: 87 private:
88 Member<StyleRuleImport> m_ownerRule; 88 Member<StyleRuleImport> m_ownerRule;
89 }; 89 };
90 90
91 void setCSSStyleSheet(const String& href, 91 void setCSSStyleSheet(const String& href,
92 const KURL& baseURL, 92 const KURL& baseURL,
93 const String& charset, 93 const String& charset,
94 const CSSStyleSheetResource*); 94 const CSSStyleSheetResource*);
95 95
96 StyleRuleImport(const String& href, MediaQuerySet*); 96 StyleRuleImport(const String& href, RefPtr<MediaQuerySet>);
97 97
98 void dispose(); 98 void dispose();
99 99
100 Member<StyleSheetContents> m_parentStyleSheet; 100 Member<StyleSheetContents> m_parentStyleSheet;
101 101
102 Member<ImportedStyleSheetClient> m_styleSheetClient; 102 Member<ImportedStyleSheetClient> m_styleSheetClient;
103 String m_strHref; 103 String m_strHref;
104 Member<MediaQuerySet> m_mediaQueries; 104 RefPtr<MediaQuerySet> m_mediaQueries;
105 Member<StyleSheetContents> m_styleSheet; 105 Member<StyleSheetContents> m_styleSheet;
106 Member<CSSStyleSheetResource> m_resource; 106 Member<CSSStyleSheetResource> m_resource;
107 bool m_loading; 107 bool m_loading;
108 }; 108 };
109 109
110 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 110 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif 114 #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