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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 case CSSPropertyWebkitMaskPositionX: | 575 case CSSPropertyWebkitMaskPositionX: |
576 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers(
), value, state); | 576 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers(
), value, state); |
577 return; | 577 return; |
578 case CSSPropertyWebkitMaskPositionY: | 578 case CSSPropertyWebkitMaskPositionY: |
579 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); | 579 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); |
580 return; | 580 return; |
581 case CSSPropertyWebkitMaskSize: | 581 case CSSPropertyWebkitMaskSize: |
582 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); | 582 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); |
583 return; | 583 return; |
584 case CSSPropertyPerspective: | 584 case CSSPropertyPerspective: |
585 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble
())); | 585 style->setPerspective(value->isDouble() ? clampTo<float>(toAnimatableDou
ble(value)->toDouble()) : 0); |
586 return; | 586 return; |
587 case CSSPropertyPerspectiveOrigin: | 587 case CSSPropertyPerspectiveOrigin: |
588 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); | 588 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); |
589 return; | 589 return; |
590 case CSSPropertyShapeOutside: | 590 case CSSPropertyShapeOutside: |
591 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); | 591 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); |
592 return; | 592 return; |
593 case CSSPropertyShapeMargin: | 593 case CSSPropertyShapeMargin: |
594 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); | 594 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); |
595 return; | 595 return; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 case CSSPropertyRy: | 682 case CSSPropertyRy: |
683 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 683 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
684 return; | 684 return; |
685 | 685 |
686 default: | 686 default: |
687 ASSERT_NOT_REACHED(); | 687 ASSERT_NOT_REACHED(); |
688 } | 688 } |
689 } | 689 } |
690 | 690 |
691 } // namespace blink | 691 } // namespace blink |
OLD | NEW |