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

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

Issue 2837023005: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: fix 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 parent_style_sheet_; } 43 StyleSheetContents* ParentStyleSheet() const { return parent_style_sheet_; }
44 void SetParentStyleSheet(StyleSheetContents* sheet) { 44 void SetParentStyleSheet(StyleSheetContents* sheet) {
45 DCHECK(sheet); 45 DCHECK(sheet);
46 parent_style_sheet_ = sheet; 46 parent_style_sheet_ = sheet;
47 } 47 }
48 void ClearParentStyleSheet() { parent_style_sheet_ = nullptr; } 48 void ClearParentStyleSheet() { parent_style_sheet_ = nullptr; }
49 49
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 private: 89 private:
90 Member<StyleRuleImport> owner_rule_; 90 Member<StyleRuleImport> owner_rule_;
91 }; 91 };
92 92
93 void SetCSSStyleSheet(const String& href, 93 void SetCSSStyleSheet(const String& href,
94 const KURL& base_url, 94 const KURL& base_url,
95 ReferrerPolicy, 95 ReferrerPolicy,
96 const String& charset, 96 const String& charset,
97 const CSSStyleSheetResource*); 97 const CSSStyleSheetResource*);
98 98
99 StyleRuleImport(const String& href, MediaQuerySet*); 99 StyleRuleImport(const String& href, RefPtr<MediaQuerySet>);
100 100
101 void Dispose(); 101 void Dispose();
102 102
103 Member<StyleSheetContents> parent_style_sheet_; 103 Member<StyleSheetContents> parent_style_sheet_;
104 104
105 Member<ImportedStyleSheetClient> style_sheet_client_; 105 Member<ImportedStyleSheetClient> style_sheet_client_;
106 String str_href_; 106 String str_href_;
107 Member<MediaQuerySet> media_queries_; 107 RefPtr<MediaQuerySet> media_queries_;
108 Member<StyleSheetContents> style_sheet_; 108 Member<StyleSheetContents> style_sheet_;
109 Member<CSSStyleSheetResource> resource_; 109 Member<CSSStyleSheetResource> resource_;
110 bool loading_; 110 bool loading_;
111 }; 111 };
112 112
113 DEFINE_STYLE_RULE_TYPE_CASTS(Import); 113 DEFINE_STYLE_RULE_TYPE_CASTS(Import);
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698