| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 case CSSPropertyShapeMargin: | 568 case CSSPropertyShapeMargin: |
| 569 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV
alues)); | 569 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV
alues)); |
| 570 return; | 570 return; |
| 571 case CSSPropertyShapeImageThreshold: | 571 case CSSPropertyShapeImageThreshold: |
| 572 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); | 572 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); |
| 573 return; | 573 return; |
| 574 case CSSPropertyWebkitTextStrokeColor: | 574 case CSSPropertyWebkitTextStrokeColor: |
| 575 style->setTextStrokeColor(toAnimatableColor(value)->color()); | 575 style->setTextStrokeColor(toAnimatableColor(value)->color()); |
| 576 style->setVisitedLinkTextStrokeColor(toAnimatableColor(value)->visitedLi
nkColor()); | 576 style->setVisitedLinkTextStrokeColor(toAnimatableColor(value)->visitedLi
nkColor()); |
| 577 return; | 577 return; |
| 578 case CSSPropertyWebkitTransform: { | 578 case CSSPropertyTransform: { |
| 579 const TransformOperations& operations = toAnimatableTransform(value)->tr
ansformOperations(); | 579 const TransformOperations& operations = toAnimatableTransform(value)->tr
ansformOperations(); |
| 580 // FIXME: This normalization (handling of 'none') should be performed at
input in AnimatableValueFactory. | 580 // FIXME: This normalization (handling of 'none') should be performed at
input in AnimatableValueFactory. |
| 581 style->setTransform(operations.size() ? operations : TransformOperations
(true)); | 581 style->setTransform(operations.size() ? operations : TransformOperations
(true)); |
| 582 return; | 582 return; |
| 583 } | 583 } |
| 584 case CSSPropertyWebkitTransformOriginX: | 584 case CSSPropertyWebkitTransformOriginX: |
| 585 style->setTransformOriginX(animatableValueToLength(value, state)); | 585 style->setTransformOriginX(animatableValueToLength(value, state)); |
| 586 return; | 586 return; |
| 587 case CSSPropertyWebkitTransformOriginY: | 587 case CSSPropertyWebkitTransformOriginY: |
| 588 style->setTransformOriginY(animatableValueToLength(value, state)); | 588 style->setTransformOriginY(animatableValueToLength(value, state)); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 607 return; | 607 return; |
| 608 case CSSPropertyZoom: | 608 case CSSPropertyZoom: |
| 609 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); | 609 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); |
| 610 return; | 610 return; |
| 611 default: | 611 default: |
| 612 ASSERT_NOT_REACHED(); | 612 ASSERT_NOT_REACHED(); |
| 613 } | 613 } |
| 614 } | 614 } |
| 615 | 615 |
| 616 } // namespace WebCore | 616 } // namespace WebCore |
| OLD | NEW |