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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); | 706 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); |
707 return; | 707 return; |
708 case CSSPropertyWebkitTextStrokeColor: | 708 case CSSPropertyWebkitTextStrokeColor: |
709 style->setTextStrokeColor(toAnimatableColor(value)->getColor()); | 709 style->setTextStrokeColor(toAnimatableColor(value)->getColor()); |
710 style->setVisitedLinkTextStrokeColor( | 710 style->setVisitedLinkTextStrokeColor( |
711 toAnimatableColor(value)->visitedLinkColor()); | 711 toAnimatableColor(value)->visitedLinkColor()); |
712 return; | 712 return; |
713 case CSSPropertyTransform: { | 713 case CSSPropertyTransform: { |
714 const TransformOperations& operations = | 714 const TransformOperations& operations = |
715 toAnimatableTransform(value)->transformOperations(); | 715 toAnimatableTransform(value)->transformOperations(); |
716 // FIXME: This normalization (handling of 'none') should be performed at i
nput in AnimatableValueFactory. | 716 // FIXME: This normalization (handling of 'none') should be performed at |
| 717 // input in AnimatableValueFactory. |
717 if (operations.size() == 0) { | 718 if (operations.size() == 0) { |
718 style->setTransform(TransformOperations(true)); | 719 style->setTransform(TransformOperations(true)); |
719 return; | 720 return; |
720 } | 721 } |
721 double sourceZoom = toAnimatableTransform(value)->zoom(); | 722 double sourceZoom = toAnimatableTransform(value)->zoom(); |
722 double destinationZoom = style->effectiveZoom(); | 723 double destinationZoom = style->effectiveZoom(); |
723 style->setTransform(sourceZoom == destinationZoom | 724 style->setTransform(sourceZoom == destinationZoom |
724 ? operations | 725 ? operations |
725 : operations.zoom(destinationZoom / sourceZoom)); | 726 : operations.zoom(destinationZoom / sourceZoom)); |
726 return; | 727 return; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 style->setRy( | 831 style->setRy( |
831 animatableValueToLength(value, state, ValueRangeNonNegative)); | 832 animatableValueToLength(value, state, ValueRangeNonNegative)); |
832 return; | 833 return; |
833 | 834 |
834 default: | 835 default: |
835 ASSERT_NOT_REACHED(); | 836 ASSERT_NOT_REACHED(); |
836 } | 837 } |
837 } | 838 } |
838 | 839 |
839 } // namespace blink | 840 } // namespace blink |
OLD | NEW |