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

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

Issue 2408353003: Add hasViewportRule() flag to StyleSheetContents. (Closed)
Patch Set: CORE_EXPORT Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 DECLARE_TRACE_AFTER_DISPATCH(); 169 DECLARE_TRACE_AFTER_DISPATCH();
170 170
171 private: 171 private:
172 StyleRulePage(CSSSelectorList, StylePropertySet*); 172 StyleRulePage(CSSSelectorList, StylePropertySet*);
173 StyleRulePage(const StyleRulePage&); 173 StyleRulePage(const StyleRulePage&);
174 174
175 Member<StylePropertySet> m_properties; // Cannot be null. 175 Member<StylePropertySet> m_properties; // Cannot be null.
176 CSSSelectorList m_selectorList; 176 CSSSelectorList m_selectorList;
177 }; 177 };
178 178
179 class StyleRuleGroup : public StyleRuleBase { 179 class CORE_EXPORT StyleRuleGroup : public StyleRuleBase {
180 public: 180 public:
181 const HeapVector<Member<StyleRuleBase>>& childRules() const { 181 const HeapVector<Member<StyleRuleBase>>& childRules() const {
182 return m_childRules; 182 return m_childRules;
183 } 183 }
184 184
185 void wrapperInsertRule(unsigned, StyleRuleBase*); 185 void wrapperInsertRule(unsigned, StyleRuleBase*);
186 void wrapperRemoveRule(unsigned); 186 void wrapperRemoveRule(unsigned);
187 187
188 DECLARE_TRACE_AFTER_DISPATCH(); 188 DECLARE_TRACE_AFTER_DISPATCH();
189 189
190 protected: 190 protected:
191 StyleRuleGroup(RuleType, HeapVector<Member<StyleRuleBase>>& adoptRule); 191 StyleRuleGroup(RuleType, HeapVector<Member<StyleRuleBase>>& adoptRule);
192 StyleRuleGroup(const StyleRuleGroup&); 192 StyleRuleGroup(const StyleRuleGroup&);
193 193
194 private: 194 private:
195 HeapVector<Member<StyleRuleBase>> m_childRules; 195 HeapVector<Member<StyleRuleBase>> m_childRules;
196 }; 196 };
197 197
198 class StyleRuleMedia : public StyleRuleGroup { 198 class CORE_EXPORT StyleRuleMedia : public StyleRuleGroup {
199 public: 199 public:
200 static StyleRuleMedia* create(MediaQuerySet* media, 200 static StyleRuleMedia* create(MediaQuerySet* media,
201 HeapVector<Member<StyleRuleBase>>& adoptRules) { 201 HeapVector<Member<StyleRuleBase>>& adoptRules) {
202 return new StyleRuleMedia(media, adoptRules); 202 return new StyleRuleMedia(media, adoptRules);
203 } 203 }
204 204
205 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } 205 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
206 206
207 StyleRuleMedia* copy() const { return new StyleRuleMedia(*this); } 207 StyleRuleMedia* copy() const { return new StyleRuleMedia(*this); }
208 208
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); 289 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
290 DEFINE_STYLE_RULE_TYPE_CASTS(Page); 290 DEFINE_STYLE_RULE_TYPE_CASTS(Page);
291 DEFINE_STYLE_RULE_TYPE_CASTS(Media); 291 DEFINE_STYLE_RULE_TYPE_CASTS(Media);
292 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); 292 DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
293 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); 293 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport);
294 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); 294 DEFINE_STYLE_RULE_TYPE_CASTS(Charset);
295 295
296 } // namespace blink 296 } // namespace blink
297 297
298 #endif // StyleRule_h 298 #endif // StyleRule_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698