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

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

Issue 2241993002: CSS Motion Path: New names for properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 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
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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 style->setRotate(toRotateTransformOperation(animatableValueToTransformOp eration(value, TransformOperation::Rotate3D))); 634 style->setRotate(toRotateTransformOperation(animatableValueToTransformOp eration(value, TransformOperation::Rotate3D)));
635 return; 635 return;
636 } 636 }
637 case CSSPropertyScale: { 637 case CSSPropertyScale: {
638 style->setScale(toScaleTransformOperation(animatableValueToTransformOper ation(value, TransformOperation::Scale3D))); 638 style->setScale(toScaleTransformOperation(animatableValueToTransformOper ation(value, TransformOperation::Scale3D)));
639 return; 639 return;
640 } 640 }
641 case CSSPropertyTransformOrigin: 641 case CSSPropertyTransformOrigin:
642 style->setTransformOrigin(animatableValueToTransformOrigin(value, state) ); 642 style->setTransformOrigin(animatableValueToTransformOrigin(value, state) );
643 return; 643 return;
644 case CSSPropertyMotionOffset: 644 case CSSPropertyOffsetDistance:
645 style->setMotionOffset(animatableValueToLength(value, state)); 645 style->setOffsetDistance(animatableValueToLength(value, state));
646 return; 646 return;
647 case CSSPropertyMotionRotation: 647 case CSSPropertyOffsetRotation:
648 style->setMotionRotation(StyleMotionRotation( 648 style->setOffsetRotation(StyleOffsetRotation(
649 toAnimatableDoubleAndBool(value)->toDouble(), 649 toAnimatableDoubleAndBool(value)->toDouble(),
650 toAnimatableDoubleAndBool(value)->flag() ? MotionRotationAuto : Moti onRotationFixed)); 650 toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto : Offs etRotationFixed));
651 return; 651 return;
652 case CSSPropertyWebkitPerspectiveOriginX: 652 case CSSPropertyWebkitPerspectiveOriginX:
653 style->setPerspectiveOriginX(animatableValueToLength(value, state)); 653 style->setPerspectiveOriginX(animatableValueToLength(value, state));
654 return; 654 return;
655 case CSSPropertyWebkitPerspectiveOriginY: 655 case CSSPropertyWebkitPerspectiveOriginY:
656 style->setPerspectiveOriginY(animatableValueToLength(value, state)); 656 style->setPerspectiveOriginY(animatableValueToLength(value, state));
657 return; 657 return;
658 case CSSPropertyWebkitTransformOriginX: 658 case CSSPropertyWebkitTransformOriginX:
659 style->setTransformOriginX(animatableValueToLength(value, state)); 659 style->setTransformOriginX(animatableValueToLength(value, state));
660 return; 660 return;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 case CSSPropertyRy: 706 case CSSPropertyRy:
707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative )); 707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative ));
708 return; 708 return;
709 709
710 default: 710 default:
711 ASSERT_NOT_REACHED(); 711 ASSERT_NOT_REACHED();
712 } 712 }
713 } 713 }
714 714
715 } // namespace blink 715 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698