| OLD | NEW |
| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 protected: | 187 protected: |
| 188 StyleRuleGroup(Type, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& a
doptRule); | 188 StyleRuleGroup(Type, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& a
doptRule); |
| 189 StyleRuleGroup(const StyleRuleGroup&); | 189 StyleRuleGroup(const StyleRuleGroup&); |
| 190 | 190 |
| 191 private: | 191 private: |
| 192 WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> > m_childRules; | 192 WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> > m_childRules; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 class StyleRuleMedia : public StyleRuleGroup { | 195 class StyleRuleMedia : public StyleRuleGroup { |
| 196 public: | 196 public: |
| 197 static PassRefPtrWillBeRawPtr<StyleRuleMedia> create(PassRefPtr<MediaQuerySe
t> media, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adoptRules) | 197 static PassRefPtrWillBeRawPtr<StyleRuleMedia> create(PassRefPtrWillBeRawPtr<
MediaQuerySet> media, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase> >& adop
tRules) |
| 198 { | 198 { |
| 199 return adoptRefWillBeNoop(new StyleRuleMedia(media, adoptRules)); | 199 return adoptRefWillBeNoop(new StyleRuleMedia(media, adoptRules)); |
| 200 } | 200 } |
| 201 | 201 |
| 202 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } | 202 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } |
| 203 | 203 |
| 204 PassRefPtrWillBeRawPtr<StyleRuleMedia> copy() const { return adoptRefWillBeN
oop(new StyleRuleMedia(*this)); } | 204 PassRefPtrWillBeRawPtr<StyleRuleMedia> copy() const { return adoptRefWillBeN
oop(new StyleRuleMedia(*this)); } |
| 205 | 205 |
| 206 void traceAfterDispatch(Visitor* visitor) { StyleRuleGroup::traceAfterDispat
ch(visitor); } | 206 void traceAfterDispatch(Visitor*); |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 StyleRuleMedia(PassRefPtr<MediaQuerySet>, WillBeHeapVector<RefPtrWillBeMembe
r<StyleRuleBase> >& adoptRules); | 209 StyleRuleMedia(PassRefPtrWillBeRawPtr<MediaQuerySet>, WillBeHeapVector<RefPt
rWillBeMember<StyleRuleBase> >& adoptRules); |
| 210 StyleRuleMedia(const StyleRuleMedia&); | 210 StyleRuleMedia(const StyleRuleMedia&); |
| 211 | 211 |
| 212 RefPtr<MediaQuerySet> m_mediaQueries; | 212 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 class StyleRuleSupports : public StyleRuleGroup { | 215 class StyleRuleSupports : public StyleRuleGroup { |
| 216 public: | 216 public: |
| 217 static PassRefPtrWillBeRawPtr<StyleRuleSupports> create(const String& condit
ionText, bool conditionIsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRul
eBase> >& adoptRules) | 217 static PassRefPtrWillBeRawPtr<StyleRuleSupports> create(const String& condit
ionText, bool conditionIsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRul
eBase> >& adoptRules) |
| 218 { | 218 { |
| 219 return adoptRefWillBeNoop(new StyleRuleSupports(conditionText, condition
IsSupported, adoptRules)); | 219 return adoptRefWillBeNoop(new StyleRuleSupports(conditionText, condition
IsSupported, adoptRules)); |
| 220 } | 220 } |
| 221 | 221 |
| 222 String conditionText() const { return m_conditionText; } | 222 String conditionText() const { return m_conditionText; } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); | 287 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); |
| 288 DEFINE_STYLE_RULE_TYPE_CASTS(Page); | 288 DEFINE_STYLE_RULE_TYPE_CASTS(Page); |
| 289 DEFINE_STYLE_RULE_TYPE_CASTS(Media); | 289 DEFINE_STYLE_RULE_TYPE_CASTS(Media); |
| 290 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); | 290 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); |
| 291 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); | 291 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); |
| 292 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); | 292 DEFINE_STYLE_RULE_TYPE_CASTS(Filter); |
| 293 | 293 |
| 294 } // namespace WebCore | 294 } // namespace WebCore |
| 295 | 295 |
| 296 #endif // StyleRule_h | 296 #endif // StyleRule_h |
| OLD | NEW |