OLD | NEW |
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 Loading... |
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 CSSPropertyOffsetAnchor: |
| 645 style->setOffsetAnchor(animatableValueToLengthPoint(value, state)); |
| 646 return; |
644 case CSSPropertyOffsetDistance: | 647 case CSSPropertyOffsetDistance: |
645 style->setOffsetDistance(animatableValueToLength(value, state)); | 648 style->setOffsetDistance(animatableValueToLength(value, state)); |
646 return; | 649 return; |
| 650 case CSSPropertyOffsetPosition: |
| 651 style->setOffsetPosition(animatableValueToLengthPoint(value, state)); |
| 652 return; |
647 case CSSPropertyOffsetRotation: | 653 case CSSPropertyOffsetRotation: |
648 style->setOffsetRotation(StyleOffsetRotation( | 654 style->setOffsetRotation(StyleOffsetRotation( |
649 toAnimatableDoubleAndBool(value)->toDouble(), | 655 toAnimatableDoubleAndBool(value)->toDouble(), |
650 toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto : Offs
etRotationFixed)); | 656 toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto : Offs
etRotationFixed)); |
651 return; | 657 return; |
652 case CSSPropertyWebkitPerspectiveOriginX: | 658 case CSSPropertyWebkitPerspectiveOriginX: |
653 style->setPerspectiveOriginX(animatableValueToLength(value, state)); | 659 style->setPerspectiveOriginX(animatableValueToLength(value, state)); |
654 return; | 660 return; |
655 case CSSPropertyWebkitPerspectiveOriginY: | 661 case CSSPropertyWebkitPerspectiveOriginY: |
656 style->setPerspectiveOriginY(animatableValueToLength(value, state)); | 662 style->setPerspectiveOriginY(animatableValueToLength(value, state)); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 case CSSPropertyRy: | 712 case CSSPropertyRy: |
707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 713 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
708 return; | 714 return; |
709 | 715 |
710 default: | 716 default: |
711 ASSERT_NOT_REACHED(); | 717 ASSERT_NOT_REACHED(); |
712 } | 718 } |
713 } | 719 } |
714 | 720 |
715 } // namespace blink | 721 } // namespace blink |
OLD | NEW |