| 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, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 case Keyframe: | 197 case Keyframe: |
| 198 ASSERT_NOT_REACHED(); | 198 ASSERT_NOT_REACHED(); |
| 199 return nullptr; | 199 return nullptr; |
| 200 } | 200 } |
| 201 ASSERT_NOT_REACHED(); | 201 ASSERT_NOT_REACHED(); |
| 202 return nullptr; | 202 return nullptr; |
| 203 } | 203 } |
| 204 | 204 |
| 205 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
parentSheet, CSSRule* parentRule) const | 205 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
parentSheet, CSSRule* parentRule) const |
| 206 { | 206 { |
| 207 RefPtrWillBeRawPtr<CSSRule> rule; | 207 RefPtrWillBeRawPtr<CSSRule> rule = nullptr; |
| 208 StyleRuleBase* self = const_cast<StyleRuleBase*>(this); | 208 StyleRuleBase* self = const_cast<StyleRuleBase*>(this); |
| 209 switch (type()) { | 209 switch (type()) { |
| 210 case Style: | 210 case Style: |
| 211 rule = CSSStyleRule::create(toStyleRule(self), parentSheet); | 211 rule = CSSStyleRule::create(toStyleRule(self), parentSheet); |
| 212 break; | 212 break; |
| 213 case Page: | 213 case Page: |
| 214 rule = CSSPageRule::create(toStyleRulePage(self), parentSheet); | 214 rule = CSSPageRule::create(toStyleRulePage(self), parentSheet); |
| 215 break; | 215 break; |
| 216 case FontFace: | 216 case FontFace: |
| 217 rule = CSSFontFaceRule::create(toStyleRuleFontFace(self), parentSheet); | 217 rule = CSSFontFaceRule::create(toStyleRuleFontFace(self), parentSheet); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 m_properties = m_properties->mutableCopy(); | 446 m_properties = m_properties->mutableCopy(); |
| 447 return *toMutableStylePropertySet(m_properties); | 447 return *toMutableStylePropertySet(m_properties); |
| 448 } | 448 } |
| 449 | 449 |
| 450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) | 450 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) |
| 451 { | 451 { |
| 452 m_properties = properties; | 452 m_properties = properties; |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace WebCore | 455 } // namespace WebCore |
| OLD | NEW |