| 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 return; | 550 return; |
| 551 case CSSPropertyWebkitMaskPositionY: | 551 case CSSPropertyWebkitMaskPositionY: |
| 552 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); | 552 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers(
), value, state); |
| 553 return; | 553 return; |
| 554 case CSSPropertyWebkitMaskSize: | 554 case CSSPropertyWebkitMaskSize: |
| 555 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); | 555 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); |
| 556 return; | 556 return; |
| 557 case CSSPropertyPerspective: | 557 case CSSPropertyPerspective: |
| 558 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble
())); | 558 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble
())); |
| 559 return; | 559 return; |
| 560 case CSSPropertyPerspectiveOrigin: { |
| 561 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 562 const AnimatableLengthPoint* animatableLengthPoint = toAnimatableLengthP
oint(value); |
| 563 style->setPerspectiveOriginX(animatableValueToLength(animatableLengthPoi
nt->x(), state)); |
| 564 style->setPerspectiveOriginY(animatableValueToLength(animatableLengthPoi
nt->y(), state)); |
| 565 return; |
| 566 } |
| 560 case CSSPropertyWebkitPerspectiveOriginX: | 567 case CSSPropertyWebkitPerspectiveOriginX: |
| 568 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 561 style->setPerspectiveOriginX(animatableValueToLength(value, state)); | 569 style->setPerspectiveOriginX(animatableValueToLength(value, state)); |
| 562 return; | 570 return; |
| 563 case CSSPropertyWebkitPerspectiveOriginY: | 571 case CSSPropertyWebkitPerspectiveOriginY: |
| 572 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 564 style->setPerspectiveOriginY(animatableValueToLength(value, state)); | 573 style->setPerspectiveOriginY(animatableValueToLength(value, state)); |
| 565 return; | 574 return; |
| 566 case CSSPropertyShapeOutside: | 575 case CSSPropertyShapeOutside: |
| 567 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); | 576 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); |
| 568 return; | 577 return; |
| 569 case CSSPropertyShapeMargin: | 578 case CSSPropertyShapeMargin: |
| 570 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV
alues)); | 579 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV
alues)); |
| 571 return; | 580 return; |
| 572 case CSSPropertyShapeImageThreshold: | 581 case CSSPropertyShapeImageThreshold: |
| 573 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); | 582 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 return; | 628 return; |
| 620 case CSSPropertyZoom: | 629 case CSSPropertyZoom: |
| 621 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); | 630 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); |
| 622 return; | 631 return; |
| 623 default: | 632 default: |
| 624 ASSERT_NOT_REACHED(); | 633 ASSERT_NOT_REACHED(); |
| 625 } | 634 } |
| 626 } | 635 } |
| 627 | 636 |
| 628 } // namespace WebCore | 637 } // namespace WebCore |
| OLD | NEW |