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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 case CSSPropertyVerticalAlign: | 675 case CSSPropertyVerticalAlign: |
676 style->setVerticalAlignLength(animatableValueToLength(value, state)); | 676 style->setVerticalAlignLength(animatableValueToLength(value, state)); |
677 return; | 677 return; |
678 case CSSPropertyVisibility: | 678 case CSSPropertyVisibility: |
679 style->setVisibility(toAnimatableVisibility(value)->visibility()); | 679 style->setVisibility(toAnimatableVisibility(value)->visibility()); |
680 return; | 680 return; |
681 case CSSPropertyZIndex: | 681 case CSSPropertyZIndex: |
682 style->setZIndex(clampTo<int>(round(toAnimatableDouble(value)->toDouble(
)))); | 682 style->setZIndex(clampTo<int>(round(toAnimatableDouble(value)->toDouble(
)))); |
683 return; | 683 return; |
684 case CSSPropertyD: | 684 case CSSPropertyD: |
685 style->setD(toAnimatablePath(value)->pathValue()); | 685 style->setD(toAnimatablePath(value)->path()); |
686 return; | 686 return; |
687 case CSSPropertyCx: | 687 case CSSPropertyCx: |
688 style->setCx(animatableValueToLength(value, state)); | 688 style->setCx(animatableValueToLength(value, state)); |
689 return; | 689 return; |
690 case CSSPropertyCy: | 690 case CSSPropertyCy: |
691 style->setCy(animatableValueToLength(value, state)); | 691 style->setCy(animatableValueToLength(value, state)); |
692 return; | 692 return; |
693 case CSSPropertyX: | 693 case CSSPropertyX: |
694 style->setX(animatableValueToLength(value, state)); | 694 style->setX(animatableValueToLength(value, state)); |
695 return; | 695 return; |
696 case CSSPropertyY: | 696 case CSSPropertyY: |
697 style->setY(animatableValueToLength(value, state)); | 697 style->setY(animatableValueToLength(value, state)); |
698 return; | 698 return; |
699 case CSSPropertyR: | 699 case CSSPropertyR: |
700 style->setR(animatableValueToLength(value, state, ValueRangeNonNegative)
); | 700 style->setR(animatableValueToLength(value, state, ValueRangeNonNegative)
); |
701 return; | 701 return; |
702 case CSSPropertyRx: | 702 case CSSPropertyRx: |
703 style->setRx(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 703 style->setRx(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
704 return; | 704 return; |
705 case CSSPropertyRy: | 705 case CSSPropertyRy: |
706 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 706 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
707 return; | 707 return; |
708 | 708 |
709 default: | 709 default: |
710 ASSERT_NOT_REACHED(); | 710 ASSERT_NOT_REACHED(); |
711 } | 711 } |
712 } | 712 } |
713 | 713 |
714 } // namespace blink | 714 } // namespace blink |
OLD | NEW |