| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 style->setTransform(operations.size() ? operations : TransformOperations
(true)); | 450 style->setTransform(operations.size() ? operations : TransformOperations
(true)); |
| 451 return; | 451 return; |
| 452 } | 452 } |
| 453 case CSSPropertyTransformOrigin: { | 453 case CSSPropertyTransformOrigin: { |
| 454 const AnimatableLengthPoint3D* animatableLengthPoint3D = toAnimatableLen
gthPoint3D(value); | 454 const AnimatableLengthPoint3D* animatableLengthPoint3D = toAnimatableLen
gthPoint3D(value); |
| 455 style->setTransformOriginX(animatableValueToLength(animatableLengthPoint
3D->x(), state)); | 455 style->setTransformOriginX(animatableValueToLength(animatableLengthPoint
3D->x(), state)); |
| 456 style->setTransformOriginY(animatableValueToLength(animatableLengthPoint
3D->y(), state)); | 456 style->setTransformOriginY(animatableValueToLength(animatableLengthPoint
3D->y(), state)); |
| 457 style->setTransformOriginZ(clampTo<float>(toAnimatableDouble(animatableL
engthPoint3D->z())->toDouble())); | 457 style->setTransformOriginZ(clampTo<float>(toAnimatableDouble(animatableL
engthPoint3D->z())->toDouble())); |
| 458 return; | 458 return; |
| 459 } | 459 } |
| 460 case CSSPropertyWidows: | |
| 461 style->setWidows(animatableValueRoundClampTo<unsigned short>(value, 1)); | |
| 462 return; | |
| 463 case CSSPropertyWidth: | 460 case CSSPropertyWidth: |
| 464 style->setWidth(animatableValueToLength(value, state, ValueRangeNonNegat
ive)); | 461 style->setWidth(animatableValueToLength(value, state, ValueRangeNonNegat
ive)); |
| 465 return; | 462 return; |
| 466 case CSSPropertyWordSpacing: | 463 case CSSPropertyWordSpacing: |
| 467 style->setWordSpacing(clampTo<float>(toAnimatableDouble(value)->toDouble
())); | 464 style->setWordSpacing(clampTo<float>(toAnimatableDouble(value)->toDouble
())); |
| 468 return; | 465 return; |
| 469 case CSSPropertyVerticalAlign: | 466 case CSSPropertyVerticalAlign: |
| 470 style->setVerticalAlignLength(animatableValueToLength(value, state)); | 467 style->setVerticalAlignLength(animatableValueToLength(value, state)); |
| 471 return; | 468 return; |
| 472 case CSSPropertyZIndex: | 469 case CSSPropertyZIndex: |
| 473 style->setZIndex(animatableValueRoundClampTo<unsigned>(value)); | 470 style->setZIndex(animatableValueRoundClampTo<unsigned>(value)); |
| 474 return; | 471 return; |
| 475 default: | 472 default: |
| 476 ASSERT_NOT_REACHED(); | 473 ASSERT_NOT_REACHED(); |
| 477 } | 474 } |
| 478 } | 475 } |
| 479 | 476 |
| 480 } // namespace blink | 477 } // namespace blink |
| OLD | NEW |