Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: Source/core/css/CSSKeyframesRule.cpp

Issue 1091283005: Make CSSKeyframesRule.insertRule an alias of appendRule (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/CSSKeyframesRule.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/CSSKeyframesRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698