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

Side by Side Diff: Source/core/animation/EffectInput.cpp

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // TODO(alancutter): Remove this once composited animations no longer depend on AnimatableValues. 201 // TODO(alancutter): Remove this once composited animations no longer depend on AnimatableValues.
202 if (element->inActiveDocument()) 202 if (element->inActiveDocument())
203 element->document().updateLayoutTreeForNodeIfNeeded(element); 203 element->document().updateLayoutTreeForNodeIfNeeded(element);
204 204
205 StyleSheetContents* styleSheetContents = element->document().elementSheet(). contents(); 205 StyleSheetContents* styleSheetContents = element->document().elementSheet(). contents();
206 StringKeyframeVector keyframes; 206 StringKeyframeVector keyframes;
207 double lastOffset = 0; 207 double lastOffset = 0;
208 208
209 for (const auto& keyframeDictionary : keyframeDictionaryVector) { 209 for (const auto& keyframeDictionary : keyframeDictionaryVector) {
210 RefPtrWillBeRawPtr<StringKeyframe> keyframe = StringKeyframe::create(); 210 RefPtr<StringKeyframe> keyframe = StringKeyframe::create();
211 211
212 ScriptValue scriptValue; 212 ScriptValue scriptValue;
213 bool frameHasOffset = DictionaryHelper::get(keyframeDictionary, "offset" , scriptValue) && !scriptValue.isNull(); 213 bool frameHasOffset = DictionaryHelper::get(keyframeDictionary, "offset" , scriptValue) && !scriptValue.isNull();
214 214
215 if (frameHasOffset) { 215 if (frameHasOffset) {
216 double offset; 216 double offset;
217 DictionaryHelper::get(keyframeDictionary, "offset", offset); 217 DictionaryHelper::get(keyframeDictionary, "offset", offset);
218 218
219 // Keyframes with offsets outside the range [0.0, 1.0] are an error. 219 // Keyframes with offsets outside the range [0.0, 1.0] are an error.
220 if (std::isnan(offset)) { 220 if (std::isnan(offset)) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 EffectModel* EffectInput::convert(Element* element, const EffectModelOrDictionar ySequence& effectInput, ExceptionState& exceptionState) 293 EffectModel* EffectInput::convert(Element* element, const EffectModelOrDictionar ySequence& effectInput, ExceptionState& exceptionState)
294 { 294 {
295 if (effectInput.isEffectModel()) 295 if (effectInput.isEffectModel())
296 return effectInput.getAsEffectModel(); 296 return effectInput.getAsEffectModel();
297 if (effectInput.isDictionarySequence()) 297 if (effectInput.isDictionarySequence())
298 return convert(element, effectInput.getAsDictionarySequence(), exception State); 298 return convert(element, effectInput.getAsDictionarySequence(), exception State);
299 return nullptr; 299 return nullptr;
300 } 300 }
301 301
302 } // namespace blink 302 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698