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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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 * 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 CSSRule* item(unsigned index); 92 CSSRule* item(unsigned index);
93 93
94 void ClearOwnerNode() override; 94 void ClearOwnerNode() override;
95 95
96 CSSRule* ownerRule() const override { return owner_rule_; } 96 CSSRule* ownerRule() const override { return owner_rule_; }
97 KURL BaseURL() const override; 97 KURL BaseURL() const override;
98 bool IsLoading() const override; 98 bool IsLoading() const override;
99 99
100 void ClearOwnerRule() { owner_rule_ = nullptr; } 100 void ClearOwnerRule() { owner_rule_ = nullptr; }
101 Document* OwnerDocument() const; 101 Document* OwnerDocument() const;
102 const MediaQuerySet* MediaQueries() const { return media_queries_; } 102 const MediaQuerySet* MediaQueries() const { return media_queries_.Get(); }
103 void SetMediaQueries(MediaQuerySet*); 103 void SetMediaQueries(PassRefPtr<MediaQuerySet>);
104 bool MatchesMediaQueries(const MediaQueryEvaluator&); 104 bool MatchesMediaQueries(const MediaQueryEvaluator&);
105 bool HasMediaQueryResults() const { 105 bool HasMediaQueryResults() const {
106 return !viewport_dependent_media_query_results_.IsEmpty() || 106 return !viewport_dependent_media_query_results_.IsEmpty() ||
107 !device_dependent_media_query_results_.IsEmpty(); 107 !device_dependent_media_query_results_.IsEmpty();
108 } 108 }
109 const MediaQueryResultList& ViewportDependentMediaQueryResults() const { 109 const MediaQueryResultList& ViewportDependentMediaQueryResults() const {
110 return viewport_dependent_media_query_results_; 110 return viewport_dependent_media_query_results_;
111 } 111 }
112 const MediaQueryResultList& DeviceDependentMediaQueryResults() const { 112 const MediaQueryResultList& DeviceDependentMediaQueryResults() const {
113 return device_dependent_media_query_results_; 113 return device_dependent_media_query_results_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 bool CanAccessRules() const; 161 bool CanAccessRules() const;
162 162
163 void SetLoadCompleted(bool); 163 void SetLoadCompleted(bool);
164 164
165 Member<StyleSheetContents> contents_; 165 Member<StyleSheetContents> contents_;
166 bool is_inline_stylesheet_ = false; 166 bool is_inline_stylesheet_ = false;
167 bool is_disabled_ = false; 167 bool is_disabled_ = false;
168 bool load_completed_ = false; 168 bool load_completed_ = false;
169 String title_; 169 String title_;
170 Member<MediaQuerySet> media_queries_; 170 RefPtr<MediaQuerySet> media_queries_;
171 MediaQueryResultList viewport_dependent_media_query_results_; 171 MediaQueryResultList viewport_dependent_media_query_results_;
172 MediaQueryResultList device_dependent_media_query_results_; 172 MediaQueryResultList device_dependent_media_query_results_;
173 173
174 RefPtr<SecurityOrigin> allow_rule_access_from_origin_; 174 RefPtr<SecurityOrigin> allow_rule_access_from_origin_;
175 175
176 Member<Node> owner_node_; 176 Member<Node> owner_node_;
177 Member<CSSRule> owner_rule_; 177 Member<CSSRule> owner_rule_;
178 178
179 TextPosition start_position_; 179 TextPosition start_position_;
180 mutable Member<MediaList> media_cssom_wrapper_; 180 mutable Member<MediaList> media_cssom_wrapper_;
(...skipping 20 matching lines...) Expand all
201 201
202 DEFINE_TYPE_CASTS(CSSStyleSheet, 202 DEFINE_TYPE_CASTS(CSSStyleSheet,
203 StyleSheet, 203 StyleSheet,
204 sheet, 204 sheet,
205 sheet->IsCSSStyleSheet(), 205 sheet->IsCSSStyleSheet(),
206 sheet.IsCSSStyleSheet()); 206 sheet.IsCSSStyleSheet());
207 207
208 } // namespace blink 208 } // namespace blink
209 209
210 #endif 210 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698