| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 else | 79 else |
| 80 percentageString = key; | 80 percentageString = key; |
| 81 | 81 |
| 82 for (unsigned i = 0; i < m_keyframes.size(); ++i) { | 82 for (unsigned i = 0; i < m_keyframes.size(); ++i) { |
| 83 if (m_keyframes[i]->keyText() == percentageString) | 83 if (m_keyframes[i]->keyText() == percentageString) |
| 84 return i; | 84 return i; |
| 85 } | 85 } |
| 86 return -1; | 86 return -1; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void StyleRuleKeyframes::traceAfterDispatch(Visitor* visitor) | |
| 90 { | |
| 91 visitor->trace(m_keyframes); | |
| 92 StyleRuleBase::traceAfterDispatch(visitor); | |
| 93 } | |
| 94 | |
| 95 CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
eet* parent) | 89 CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
eet* parent) |
| 96 : CSSRule(parent) | 90 : CSSRule(parent) |
| 97 , m_keyframesRule(keyframesRule) | 91 , m_keyframesRule(keyframesRule) |
| 98 , m_childRuleCSSOMWrappers(keyframesRule->keyframes().size()) | 92 , m_childRuleCSSOMWrappers(keyframesRule->keyframes().size()) |
| 99 , m_isPrefixed(keyframesRule->isVendorPrefixed()) | 93 , m_isPrefixed(keyframesRule->isVendorPrefixed()) |
| 100 { | 94 { |
| 101 } | 95 } |
| 102 | 96 |
| 103 CSSKeyframesRule::~CSSKeyframesRule() | 97 CSSKeyframesRule::~CSSKeyframesRule() |
| 104 { | 98 { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 m_ruleListCSSOMWrapper = LiveCSSRuleList<CSSKeyframesRule>::create(this)
; | 197 m_ruleListCSSOMWrapper = LiveCSSRuleList<CSSKeyframesRule>::create(this)
; |
| 204 return m_ruleListCSSOMWrapper.get(); | 198 return m_ruleListCSSOMWrapper.get(); |
| 205 } | 199 } |
| 206 | 200 |
| 207 void CSSKeyframesRule::reattach(StyleRuleBase* rule) | 201 void CSSKeyframesRule::reattach(StyleRuleBase* rule) |
| 208 { | 202 { |
| 209 ASSERT(rule); | 203 ASSERT(rule); |
| 210 m_keyframesRule = toStyleRuleKeyframes(rule); | 204 m_keyframesRule = toStyleRuleKeyframes(rule); |
| 211 } | 205 } |
| 212 | 206 |
| 213 void CSSKeyframesRule::trace(Visitor* visitor) | |
| 214 { | |
| 215 CSSRule::trace(visitor); | |
| 216 #if ENABLE(OILPAN) | |
| 217 visitor->trace(m_childRuleCSSOMWrappers); | |
| 218 #endif | |
| 219 visitor->trace(m_keyframesRule); | |
| 220 visitor->trace(m_ruleListCSSOMWrapper); | |
| 221 } | |
| 222 | |
| 223 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |