OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
eet* parent) | 89 CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
eet* parent) |
90 : CSSRule(parent) | 90 : CSSRule(parent) |
91 , m_keyframesRule(keyframesRule) | 91 , m_keyframesRule(keyframesRule) |
92 , m_childRuleCSSOMWrappers(keyframesRule->keyframes().size()) | 92 , m_childRuleCSSOMWrappers(keyframesRule->keyframes().size()) |
93 , m_isPrefixed(keyframesRule->isVendorPrefixed()) | 93 , m_isPrefixed(keyframesRule->isVendorPrefixed()) |
94 { | 94 { |
95 } | 95 } |
96 | 96 |
97 CSSKeyframesRule::~CSSKeyframesRule() | 97 CSSKeyframesRule::~CSSKeyframesRule() |
98 { | 98 { |
| 99 #if !ENABLE(OILPAN) |
99 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size(
)); | 100 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size(
)); |
100 | |
101 #if !ENABLE(OILPAN) | |
102 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { | 101 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { |
103 if (m_childRuleCSSOMWrappers[i]) | 102 if (m_childRuleCSSOMWrappers[i]) |
104 m_childRuleCSSOMWrappers[i]->setParentRule(0); | 103 m_childRuleCSSOMWrappers[i]->setParentRule(0); |
105 } | 104 } |
106 #endif | 105 #endif |
107 } | 106 } |
108 | 107 |
109 void CSSKeyframesRule::setName(const String& name) | 108 void CSSKeyframesRule::setName(const String& name) |
110 { | 109 { |
111 CSSStyleSheet::RuleMutationScope mutationScope(this); | 110 CSSStyleSheet::RuleMutationScope mutationScope(this); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void CSSKeyframesRule::trace(Visitor* visitor) | 207 void CSSKeyframesRule::trace(Visitor* visitor) |
209 { | 208 { |
210 CSSRule::trace(visitor); | 209 CSSRule::trace(visitor); |
211 #if ENABLE(OILPAN) | 210 #if ENABLE(OILPAN) |
212 visitor->trace(m_childRuleCSSOMWrappers); | 211 visitor->trace(m_childRuleCSSOMWrappers); |
213 #endif | 212 #endif |
214 visitor->trace(m_keyframesRule); | 213 visitor->trace(m_keyframesRule); |
215 } | 214 } |
216 | 215 |
217 } // namespace WebCore | 216 } // namespace WebCore |
OLD | NEW |