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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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 * 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 m_ownerRule; } 97 CSSRule* ownerRule() const override { return m_ownerRule; }
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() { m_ownerRule = nullptr; } 101 void clearOwnerRule() { m_ownerRule = nullptr; }
102 Document* ownerDocument() const; 102 Document* ownerDocument() const;
103 const MediaQuerySet* mediaQueries() const { return m_mediaQueries; } 103 const MediaQuerySet* mediaQueries() const { return m_mediaQueries.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 m_viewportDependentMediaQueryResults; 107 return m_viewportDependentMediaQueryResults;
108 } 108 }
109 const MediaQueryResultList& deviceDependentMediaQueryResults() const { 109 const MediaQueryResultList& deviceDependentMediaQueryResults() const {
110 return m_deviceDependentMediaQueryResults; 110 return m_deviceDependentMediaQueryResults;
111 } 111 }
112 void setTitle(const String& title) { m_title = title; } 112 void setTitle(const String& title) { m_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> m_contents; 162 Member<StyleSheetContents> m_contents;
163 bool m_isInlineStylesheet = false; 163 bool m_isInlineStylesheet = false;
164 bool m_isDisabled = false; 164 bool m_isDisabled = false;
165 bool m_loadCompleted = false; 165 bool m_loadCompleted = false;
166 String m_title; 166 String m_title;
167 Member<MediaQuerySet> m_mediaQueries; 167 RefPtr<MediaQuerySet> m_mediaQueries;
168 MediaQueryResultList m_viewportDependentMediaQueryResults; 168 MediaQueryResultList m_viewportDependentMediaQueryResults;
169 MediaQueryResultList m_deviceDependentMediaQueryResults; 169 MediaQueryResultList m_deviceDependentMediaQueryResults;
170 170
171 RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin; 171 RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin;
172 172
173 Member<Node> m_ownerNode; 173 Member<Node> m_ownerNode;
174 Member<CSSRule> m_ownerRule; 174 Member<CSSRule> m_ownerRule;
175 175
176 TextPosition m_startPosition; 176 TextPosition m_startPosition;
177 mutable Member<MediaList> m_mediaCSSOMWrapper; 177 mutable Member<MediaList> m_mediaCSSOMWrapper;
(...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