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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 RefPtr<StylePropertySet> m_properties; | 121 RefPtr<StylePropertySet> m_properties; |
122 CSSSelectorList m_selectorList; | 122 CSSSelectorList m_selectorList; |
123 }; | 123 }; |
124 | 124 |
125 inline const StyleRule* toStyleRule(const StyleRuleBase* rule) | 125 inline const StyleRule* toStyleRule(const StyleRuleBase* rule) |
126 { | 126 { |
127 ASSERT_WITH_SECURITY_IMPLICATION(!rule || rule->isStyleRule()); | 127 ASSERT_WITH_SECURITY_IMPLICATION(!rule || rule->isStyleRule()); |
128 return static_cast<const StyleRule*>(rule); | 128 return static_cast<const StyleRule*>(rule); |
129 } | 129 } |
130 | 130 |
| 131 inline StyleRule* toStyleRule(StyleRuleBase* rule) |
| 132 { |
| 133 ASSERT_WITH_SECURITY_IMPLICATION(!rule || rule->isStyleRule()); |
| 134 return static_cast<StyleRule*>(rule); |
| 135 } |
| 136 |
| 137 void toStyleRule(const StyleRule*); |
| 138 |
131 class StyleRuleFontFace : public StyleRuleBase { | 139 class StyleRuleFontFace : public StyleRuleBase { |
132 public: | 140 public: |
133 static PassRefPtr<StyleRuleFontFace> create() { return adoptRef(new StyleRul
eFontFace); } | 141 static PassRefPtr<StyleRuleFontFace> create() { return adoptRef(new StyleRul
eFontFace); } |
134 | 142 |
135 ~StyleRuleFontFace(); | 143 ~StyleRuleFontFace(); |
136 | 144 |
137 const StylePropertySet* properties() const { return m_properties.get(); } | 145 const StylePropertySet* properties() const { return m_properties.get(); } |
138 MutableStylePropertySet* mutableProperties(); | 146 MutableStylePropertySet* mutableProperties(); |
139 | 147 |
140 void setProperties(PassRefPtr<StylePropertySet>); | 148 void setProperties(PassRefPtr<StylePropertySet>); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 StyleRuleFilter(const String&); | 321 StyleRuleFilter(const String&); |
314 StyleRuleFilter(const StyleRuleFilter&); | 322 StyleRuleFilter(const StyleRuleFilter&); |
315 | 323 |
316 String m_filterName; | 324 String m_filterName; |
317 RefPtr<StylePropertySet> m_properties; | 325 RefPtr<StylePropertySet> m_properties; |
318 }; | 326 }; |
319 | 327 |
320 } // namespace WebCore | 328 } // namespace WebCore |
321 | 329 |
322 #endif // StyleRule_h | 330 #endif // StyleRule_h |
OLD | NEW |