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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 case CSSPropertyShapeOutside: | 469 case CSSPropertyShapeOutside: |
469 return createFromShapeValue(style.shapeOutside()); | 470 return createFromShapeValue(style.shapeOutside()); |
470 case CSSPropertyShapeMargin: | 471 case CSSPropertyShapeMargin: |
471 return createFromLength(style.shapeMargin(), style); | 472 return createFromLength(style.shapeMargin(), style); |
472 case CSSPropertyShapeImageThreshold: | 473 case CSSPropertyShapeImageThreshold: |
473 return createFromDouble(style.shapeImageThreshold()); | 474 return createFromDouble(style.shapeImageThreshold()); |
474 case CSSPropertyWebkitTextStrokeColor: | 475 case CSSPropertyWebkitTextStrokeColor: |
475 return createFromColor(property, style); | 476 return createFromColor(property, style); |
476 case CSSPropertyTransform: | 477 case CSSPropertyTransform: |
477 return AnimatableTransform::create(style.transform()); | 478 return AnimatableTransform::create(style.transform()); |
| 479 case CSSPropertyTransformOrigin: |
| 480 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
| 481 return AnimatableLengthPoint3D::create( |
| 482 createFromLength(style.transformOriginX(), style), |
| 483 createFromLength(style.transformOriginY(), style), |
| 484 createFromDouble(style.transformOriginZ())); |
478 case CSSPropertyWebkitTransformOriginX: | 485 case CSSPropertyWebkitTransformOriginX: |
| 486 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
479 return createFromLength(style.transformOriginX(), style); | 487 return createFromLength(style.transformOriginX(), style); |
480 case CSSPropertyWebkitTransformOriginY: | 488 case CSSPropertyWebkitTransformOriginY: |
| 489 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
481 return createFromLength(style.transformOriginY(), style); | 490 return createFromLength(style.transformOriginY(), style); |
482 case CSSPropertyWebkitTransformOriginZ: | 491 case CSSPropertyWebkitTransformOriginZ: |
| 492 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled()); |
483 return createFromDouble(style.transformOriginZ()); | 493 return createFromDouble(style.transformOriginZ()); |
484 case CSSPropertyWidows: | 494 case CSSPropertyWidows: |
485 return createFromDouble(style.widows()); | 495 return createFromDouble(style.widows()); |
486 case CSSPropertyWidth: | 496 case CSSPropertyWidth: |
487 return createFromLength(style.width(), style); | 497 return createFromLength(style.width(), style); |
488 case CSSPropertyWordSpacing: | 498 case CSSPropertyWordSpacing: |
489 return createFromDouble(style.wordSpacing()); | 499 return createFromDouble(style.wordSpacing()); |
490 case CSSPropertyVisibility: | 500 case CSSPropertyVisibility: |
491 return AnimatableVisibility::create(style.visibility()); | 501 return AnimatableVisibility::create(style.visibility()); |
492 case CSSPropertyZIndex: | 502 case CSSPropertyZIndex: |
493 return createFromDouble(style.zIndex()); | 503 return createFromDouble(style.zIndex()); |
494 case CSSPropertyZoom: | 504 case CSSPropertyZoom: |
495 return createFromDouble(style.zoom()); | 505 return createFromDouble(style.zoom()); |
496 default: | 506 default: |
497 ASSERT_NOT_REACHED(); | 507 ASSERT_NOT_REACHED(); |
498 // This return value is to avoid a release crash if possible. | 508 // This return value is to avoid a release crash if possible. |
499 return AnimatableUnknown::create(nullptr); | 509 return AnimatableUnknown::create(nullptr); |
500 } | 510 } |
501 } | 511 } |
502 | 512 |
503 } // namespace WebCore | 513 } // namespace WebCore |
OLD | NEW |