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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2650163002: Animations: Smooth interpolation for scale none (Closed)
Patch Set: reviewFeedback Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | 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) 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 FontDescription::Size animatableValueToFontSize(const AnimatableValue* value) { 292 FontDescription::Size animatableValueToFontSize(const AnimatableValue* value) {
293 float size = clampTo<float>(toAnimatableDouble(value)->toDouble(), 0); 293 float size = clampTo<float>(toAnimatableDouble(value)->toDouble(), 0);
294 return FontDescription::Size(0, size, true); 294 return FontDescription::Size(0, size, true);
295 } 295 }
296 296
297 TransformOperation* animatableValueToTransformOperation( 297 TransformOperation* animatableValueToTransformOperation(
298 const AnimatableValue* value, 298 const AnimatableValue* value,
299 TransformOperation::OperationType type) { 299 TransformOperation::OperationType type) {
300 const TransformOperations& transformList = 300 const TransformOperations& transformList =
301 toAnimatableTransform(value)->transformOperations(); 301 toAnimatableTransform(value)->transformOperations();
302 if (transformList.size() == 0)
303 return nullptr;
302 ASSERT(transformList.size() == 1); 304 ASSERT(transformList.size() == 1);
303 ASSERT(transformList.operations()[0].get()->type() == type); 305 ASSERT(transformList.operations()[0].get()->type() == type);
304 return transformList.operations()[0].get(); 306 return transformList.operations()[0].get();
305 } 307 }
306 308
307 } // namespace 309 } // namespace
308 310
309 // FIXME: Generate this function. 311 // FIXME: Generate this function.
310 void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, 312 void AnimatedStyleBuilder::applyProperty(CSSPropertyID property,
311 StyleResolverState& state, 313 StyleResolverState& state,
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 style->setRy( 851 style->setRy(
850 animatableValueToLength(value, state, ValueRangeNonNegative)); 852 animatableValueToLength(value, state, ValueRangeNonNegative));
851 return; 853 return;
852 854
853 default: 855 default:
854 ASSERT_NOT_REACHED(); 856 ASSERT_NOT_REACHED();
855 } 857 }
856 } 858 }
857 859
858 } // namespace blink 860 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698