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 23 matching lines...) Expand all Loading... |
34 #include "CSSValueKeywords.h" | 34 #include "CSSValueKeywords.h" |
35 #include "core/animation/AnimatableClipPathOperation.h" | 35 #include "core/animation/AnimatableClipPathOperation.h" |
36 #include "core/animation/AnimatableColor.h" | 36 #include "core/animation/AnimatableColor.h" |
37 #include "core/animation/AnimatableDouble.h" | 37 #include "core/animation/AnimatableDouble.h" |
38 #include "core/animation/AnimatableFilterOperations.h" | 38 #include "core/animation/AnimatableFilterOperations.h" |
39 #include "core/animation/AnimatableImage.h" | 39 #include "core/animation/AnimatableImage.h" |
40 #include "core/animation/AnimatableLength.h" | 40 #include "core/animation/AnimatableLength.h" |
41 #include "core/animation/AnimatableLengthBox.h" | 41 #include "core/animation/AnimatableLengthBox.h" |
42 #include "core/animation/AnimatableLengthBoxAndBool.h" | 42 #include "core/animation/AnimatableLengthBoxAndBool.h" |
43 #include "core/animation/AnimatableLengthPoint.h" | 43 #include "core/animation/AnimatableLengthPoint.h" |
| 44 #include "core/animation/AnimatableLengthPoint3D.h" |
44 #include "core/animation/AnimatableLengthSize.h" | 45 #include "core/animation/AnimatableLengthSize.h" |
45 #include "core/animation/AnimatableRepeatable.h" | 46 #include "core/animation/AnimatableRepeatable.h" |
46 #include "core/animation/AnimatableSVGLength.h" | 47 #include "core/animation/AnimatableSVGLength.h" |
47 #include "core/animation/AnimatableSVGPaint.h" | 48 #include "core/animation/AnimatableSVGPaint.h" |
48 #include "core/animation/AnimatableShadow.h" | 49 #include "core/animation/AnimatableShadow.h" |
49 #include "core/animation/AnimatableShapeValue.h" | 50 #include "core/animation/AnimatableShapeValue.h" |
50 #include "core/animation/AnimatableStrokeDasharrayList.h" | 51 #include "core/animation/AnimatableStrokeDasharrayList.h" |
51 #include "core/animation/AnimatableTransform.h" | 52 #include "core/animation/AnimatableTransform.h" |
52 #include "core/animation/AnimatableUnknown.h" | 53 #include "core/animation/AnimatableUnknown.h" |
53 #include "core/animation/AnimatableVisibility.h" | 54 #include "core/animation/AnimatableVisibility.h" |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 case CSSPropertyWebkitMaskBoxImageWidth: | 451 case CSSPropertyWebkitMaskBoxImageWidth: |
451 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style); | 452 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style); |
452 case CSSPropertyWebkitMaskImage: | 453 case CSSPropertyWebkitMaskImage: |
453 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers
(), style); | 454 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers
(), style); |
454 case CSSPropertyWebkitMaskPositionX: | 455 case CSSPropertyWebkitMaskPositionX: |
455 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa
yers(), style); | 456 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa
yers(), style); |
456 case CSSPropertyWebkitMaskPositionY: | 457 case CSSPropertyWebkitMaskPositionY: |
457 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa
yers(), style); | 458 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa
yers(), style); |
458 case CSSPropertyWebkitMaskSize: | 459 case CSSPropertyWebkitMaskSize: |
459 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers(
), style); | 460 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers(
), style); |
460 case CSSPropertyWebkitPerspective: | 461 case CSSPropertyPerspective: |
461 return createFromDouble(style.perspective()); | 462 return createFromDouble(style.perspective()); |
| 463 case CSSPropertyPerspectiveOrigin: |
| 464 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 465 return AnimatableLengthPoint::create( |
| 466 createFromLength(style.perspectiveOriginX(), style), |
| 467 createFromLength(style.perspectiveOriginY(), style)); |
462 case CSSPropertyWebkitPerspectiveOriginX: | 468 case CSSPropertyWebkitPerspectiveOriginX: |
| 469 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
463 return createFromLength(style.perspectiveOriginX(), style); | 470 return createFromLength(style.perspectiveOriginX(), style); |
464 case CSSPropertyWebkitPerspectiveOriginY: | 471 case CSSPropertyWebkitPerspectiveOriginY: |
| 472 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
465 return createFromLength(style.perspectiveOriginY(), style); | 473 return createFromLength(style.perspectiveOriginY(), style); |
466 case CSSPropertyShapeInside: | 474 case CSSPropertyShapeInside: |
467 return createFromShapeValue(style.shapeInside()); | 475 return createFromShapeValue(style.shapeInside()); |
468 case CSSPropertyShapeOutside: | 476 case CSSPropertyShapeOutside: |
469 return createFromShapeValue(style.shapeOutside()); | 477 return createFromShapeValue(style.shapeOutside()); |
470 case CSSPropertyShapeMargin: | 478 case CSSPropertyShapeMargin: |
471 return createFromLength(style.shapeMargin(), style); | 479 return createFromLength(style.shapeMargin(), style); |
472 case CSSPropertyShapeImageThreshold: | 480 case CSSPropertyShapeImageThreshold: |
473 return createFromDouble(style.shapeImageThreshold()); | 481 return createFromDouble(style.shapeImageThreshold()); |
474 case CSSPropertyWebkitTextStrokeColor: | 482 case CSSPropertyWebkitTextStrokeColor: |
475 return createFromColor(property, style); | 483 return createFromColor(property, style); |
476 case CSSPropertyWebkitTransform: | 484 case CSSPropertyTransform: |
477 return AnimatableTransform::create(style.transform()); | 485 return AnimatableTransform::create(style.transform()); |
| 486 case CSSPropertyTransformOrigin: |
| 487 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 488 return AnimatableLengthPoint3D::create( |
| 489 createFromLength(style.transformOriginX(), style), |
| 490 createFromLength(style.transformOriginY(), style), |
| 491 createFromDouble(style.transformOriginZ())); |
478 case CSSPropertyWebkitTransformOriginX: | 492 case CSSPropertyWebkitTransformOriginX: |
| 493 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
479 return createFromLength(style.transformOriginX(), style); | 494 return createFromLength(style.transformOriginX(), style); |
480 case CSSPropertyWebkitTransformOriginY: | 495 case CSSPropertyWebkitTransformOriginY: |
| 496 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
481 return createFromLength(style.transformOriginY(), style); | 497 return createFromLength(style.transformOriginY(), style); |
482 case CSSPropertyWebkitTransformOriginZ: | 498 case CSSPropertyWebkitTransformOriginZ: |
| 499 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
483 return createFromDouble(style.transformOriginZ()); | 500 return createFromDouble(style.transformOriginZ()); |
484 case CSSPropertyWidows: | 501 case CSSPropertyWidows: |
485 return createFromDouble(style.widows()); | 502 return createFromDouble(style.widows()); |
486 case CSSPropertyWidth: | 503 case CSSPropertyWidth: |
487 return createFromLength(style.width(), style); | 504 return createFromLength(style.width(), style); |
488 case CSSPropertyWordSpacing: | 505 case CSSPropertyWordSpacing: |
489 return createFromDouble(style.wordSpacing()); | 506 return createFromDouble(style.wordSpacing()); |
490 case CSSPropertyVisibility: | 507 case CSSPropertyVisibility: |
491 return AnimatableVisibility::create(style.visibility()); | 508 return AnimatableVisibility::create(style.visibility()); |
492 case CSSPropertyZIndex: | 509 case CSSPropertyZIndex: |
493 return createFromDouble(style.zIndex()); | 510 return createFromDouble(style.zIndex()); |
494 case CSSPropertyZoom: | 511 case CSSPropertyZoom: |
495 return createFromDouble(style.zoom()); | 512 return createFromDouble(style.zoom()); |
496 default: | 513 default: |
497 ASSERT_NOT_REACHED(); | 514 ASSERT_NOT_REACHED(); |
498 // This return value is to avoid a release crash if possible. | 515 // This return value is to avoid a release crash if possible. |
499 return AnimatableUnknown::create(nullptr); | 516 return AnimatableUnknown::create(nullptr); |
500 } | 517 } |
501 } | 518 } |
502 | 519 |
503 } // namespace WebCore | 520 } // namespace WebCore |
OLD | NEW |