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

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

Issue 2857603002: 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 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
4 * reserved. 4 * 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 CSSRule* item(unsigned index); 93 CSSRule* item(unsigned index);
94 94
95 void ClearOwnerNode() override; 95 void ClearOwnerNode() override;
96 96
97 CSSRule* ownerRule() const override { return owner_rule_; } 97 CSSRule* ownerRule() const override { return owner_rule_; }
98 KURL BaseURL() const override; 98 KURL BaseURL() const override;
99 bool IsLoading() const override; 99 bool IsLoading() const override;
100 100
101 void ClearOwnerRule() { owner_rule_ = nullptr; } 101 void ClearOwnerRule() { owner_rule_ = nullptr; }
102 Document* OwnerDocument() const; 102 Document* OwnerDocument() const;
103 const MediaQuerySet* MediaQueries() const { return media_queries_; } 103 const MediaQuerySet* MediaQueries() const { return media_queries_.Get(); }
104 void SetMediaQueries(MediaQuerySet*); 104 void SetMediaQueries(RefPtr<MediaQuerySet>);
105 bool MatchesMediaQueries(const MediaQueryEvaluator&); 105 bool MatchesMediaQueries(const MediaQueryEvaluator&);
106 const MediaQueryResultList& ViewportDependentMediaQueryResults() const { 106 const MediaQueryResultList& ViewportDependentMediaQueryResults() const {
107 return viewport_dependent_media_query_results_; 107 return viewport_dependent_media_query_results_;
108 } 108 }
109 const MediaQueryResultList& DeviceDependentMediaQueryResults() const { 109 const MediaQueryResultList& DeviceDependentMediaQueryResults() const {
110 return device_dependent_media_query_results_; 110 return device_dependent_media_query_results_;
111 } 111 }
112 void SetTitle(const String& title) { title_ = title; } 112 void SetTitle(const String& title) { title_ = title; }
113 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this 113 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this
114 // origin. 114 // origin.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 bool CanAccessRules() const; 158 bool CanAccessRules() const;
159 159
160 void SetLoadCompleted(bool); 160 void SetLoadCompleted(bool);
161 161
162 Member<StyleSheetContents> contents_; 162 Member<StyleSheetContents> contents_;
163 bool is_inline_stylesheet_ = false; 163 bool is_inline_stylesheet_ = false;
164 bool is_disabled_ = false; 164 bool is_disabled_ = false;
165 bool load_completed_ = false; 165 bool load_completed_ = false;
166 String title_; 166 String title_;
167 Member<MediaQuerySet> media_queries_; 167 RefPtr<MediaQuerySet> media_queries_;
168 MediaQueryResultList viewport_dependent_media_query_results_; 168 MediaQueryResultList viewport_dependent_media_query_results_;
169 MediaQueryResultList device_dependent_media_query_results_; 169 MediaQueryResultList device_dependent_media_query_results_;
170 170
171 RefPtr<SecurityOrigin> allow_rule_access_from_origin_; 171 RefPtr<SecurityOrigin> allow_rule_access_from_origin_;
172 172
173 Member<Node> owner_node_; 173 Member<Node> owner_node_;
174 Member<CSSRule> owner_rule_; 174 Member<CSSRule> owner_rule_;
175 175
176 TextPosition start_position_; 176 TextPosition start_position_;
177 mutable Member<MediaList> media_cssom_wrapper_; 177 mutable Member<MediaList> media_cssom_wrapper_;
(...skipping 20 matching lines...) Expand all
198 198
199 DEFINE_TYPE_CASTS(CSSStyleSheet, 199 DEFINE_TYPE_CASTS(CSSStyleSheet,
200 StyleSheet, 200 StyleSheet,
201 sheet, 201 sheet,
202 sheet->IsCSSStyleSheet(), 202 sheet->IsCSSStyleSheet(),
203 sheet.IsCSSStyleSheet()); 203 sheet.IsCSSStyleSheet());
204 204
205 } // namespace blink 205 } // namespace blink
206 206
207 #endif 207 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMediaRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698