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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 return; | 553 return; |
554 case CSSPropertyWebkitMaskPositionY: | 554 case CSSPropertyWebkitMaskPositionY: |
555 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); | 555 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); |
556 return; | 556 return; |
557 case CSSPropertyWebkitMaskSize: | 557 case CSSPropertyWebkitMaskSize: |
558 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); | 558 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); |
559 return; | 559 return; |
560 case CSSPropertyPerspective: | 560 case CSSPropertyPerspective: |
561 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble
())); | 561 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble
())); |
562 return; | 562 return; |
563 case CSSPropertyPerspectiveOrigin: { | 563 case CSSPropertyPerspectiveOrigin: |
564 const AnimatableLengthPoint* animatableLengthPoint = toAnimatableLengthP
oint(value); | 564 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); |
565 style->setPerspectiveOriginX(animatableValueToLength(animatableLengthPoi
nt->x(), state)); | |
566 style->setPerspectiveOriginY(animatableValueToLength(animatableLengthPoi
nt->y(), state)); | |
567 return; | 565 return; |
568 } | |
569 case CSSPropertyShapeOutside: | 566 case CSSPropertyShapeOutside: |
570 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); | 567 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); |
571 return; | 568 return; |
572 case CSSPropertyShapeMargin: | 569 case CSSPropertyShapeMargin: |
573 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); | 570 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); |
574 return; | 571 return; |
575 case CSSPropertyShapeImageThreshold: | 572 case CSSPropertyShapeImageThreshold: |
576 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); | 573 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); |
577 return; | 574 return; |
578 case CSSPropertyWebkitTextStrokeColor: | 575 case CSSPropertyWebkitTextStrokeColor: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 return; | 609 return; |
613 case CSSPropertyZoom: | 610 case CSSPropertyZoom: |
614 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); | 611 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); |
615 return; | 612 return; |
616 default: | 613 default: |
617 ASSERT_NOT_REACHED(); | 614 ASSERT_NOT_REACHED(); |
618 } | 615 } |
619 } | 616 } |
620 | 617 |
621 } // namespace blink | 618 } // namespace blink |
OLD | NEW |