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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 #endif | 110 #endif |
111 } | 111 } |
112 | 112 |
113 void CSSKeyframesRule::setName(const String& name) | 113 void CSSKeyframesRule::setName(const String& name) |
114 { | 114 { |
115 CSSStyleSheet::RuleMutationScope mutationScope(this); | 115 CSSStyleSheet::RuleMutationScope mutationScope(this); |
116 | 116 |
117 m_keyframesRule->setName(name); | 117 m_keyframesRule->setName(name); |
118 } | 118 } |
119 | 119 |
120 void CSSKeyframesRule::insertRule(const String& ruleText) | 120 void CSSKeyframesRule::appendRule(const String& ruleText) |
121 { | 121 { |
122 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size(
)); | 122 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size(
)); |
123 | 123 |
124 CSSStyleSheet* styleSheet = parentStyleSheet(); | 124 CSSStyleSheet* styleSheet = parentStyleSheet(); |
125 CSSParserContext context(parserContext(), UseCounter::getFrom(styleSheet)); | 125 CSSParserContext context(parserContext(), UseCounter::getFrom(styleSheet)); |
126 RefPtrWillBeRawPtr<StyleRuleKeyframe> keyframe = CSSParser::parseKeyframeRul
e(context, styleSheet ? styleSheet->contents() : 0, ruleText); | 126 RefPtrWillBeRawPtr<StyleRuleKeyframe> keyframe = CSSParser::parseKeyframeRul
e(context, styleSheet ? styleSheet->contents() : 0, ruleText); |
127 if (!keyframe) | 127 if (!keyframe) |
128 return; | 128 return; |
129 | 129 |
130 CSSStyleSheet::RuleMutationScope mutationScope(this); | 130 CSSStyleSheet::RuleMutationScope mutationScope(this); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 { | 212 { |
213 CSSRule::trace(visitor); | 213 CSSRule::trace(visitor); |
214 #if ENABLE(OILPAN) | 214 #if ENABLE(OILPAN) |
215 visitor->trace(m_childRuleCSSOMWrappers); | 215 visitor->trace(m_childRuleCSSOMWrappers); |
216 #endif | 216 #endif |
217 visitor->trace(m_keyframesRule); | 217 visitor->trace(m_keyframesRule); |
218 visitor->trace(m_ruleListCSSOMWrapper); | 218 visitor->trace(m_ruleListCSSOMWrapper); |
219 } | 219 } |
220 | 220 |
221 } // namespace blink | 221 } // namespace blink |
OLD | NEW |