| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/animation/AnimatableDouble.h" | 37 #include "core/animation/AnimatableDouble.h" |
| 38 #include "core/animation/AnimatableImage.h" | 38 #include "core/animation/AnimatableImage.h" |
| 39 #include "core/animation/AnimatableLength.h" | 39 #include "core/animation/AnimatableLength.h" |
| 40 #include "core/animation/AnimatableLengthBox.h" | 40 #include "core/animation/AnimatableLengthBox.h" |
| 41 #include "core/animation/AnimatableLengthBoxAndBool.h" | 41 #include "core/animation/AnimatableLengthBoxAndBool.h" |
| 42 #include "core/animation/AnimatableLengthPoint.h" | 42 #include "core/animation/AnimatableLengthPoint.h" |
| 43 #include "core/animation/AnimatableLengthSize.h" | 43 #include "core/animation/AnimatableLengthSize.h" |
| 44 #include "core/animation/AnimatableRepeatable.h" | 44 #include "core/animation/AnimatableRepeatable.h" |
| 45 #include "core/animation/AnimatableSVGLength.h" | 45 #include "core/animation/AnimatableSVGLength.h" |
| 46 #include "core/animation/AnimatableSVGPaint.h" | 46 #include "core/animation/AnimatableSVGPaint.h" |
| 47 #include "core/animation/AnimatableShadow.h" |
| 47 #include "core/animation/AnimatableShapeValue.h" | 48 #include "core/animation/AnimatableShapeValue.h" |
| 48 #include "core/animation/AnimatableStrokeDasharrayList.h" | 49 #include "core/animation/AnimatableStrokeDasharrayList.h" |
| 49 #include "core/animation/AnimatableTransform.h" | 50 #include "core/animation/AnimatableTransform.h" |
| 50 #include "core/animation/AnimatableUnknown.h" | 51 #include "core/animation/AnimatableUnknown.h" |
| 51 #include "core/animation/AnimatableVisibility.h" | 52 #include "core/animation/AnimatableVisibility.h" |
| 52 #include "core/animation/css/CSSAnimations.h" | 53 #include "core/animation/css/CSSAnimations.h" |
| 53 #include "core/css/CSSCalculationValue.h" | 54 #include "core/css/CSSCalculationValue.h" |
| 54 #include "core/css/CSSPrimitiveValue.h" | 55 #include "core/css/CSSPrimitiveValue.h" |
| 55 #include "core/css/CSSPrimitiveValueMappings.h" | 56 #include "core/css/CSSPrimitiveValueMappings.h" |
| 56 #include "core/rendering/style/RenderStyle.h" | 57 #include "core/rendering/style/RenderStyle.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 case CSSPropertyBorderTopColor: | 243 case CSSPropertyBorderTopColor: |
| 243 return createFromColor(property, style); | 244 return createFromColor(property, style); |
| 244 case CSSPropertyBorderTopLeftRadius: | 245 case CSSPropertyBorderTopLeftRadius: |
| 245 return createFromLengthSize(style->borderTopLeftRadius(), style); | 246 return createFromLengthSize(style->borderTopLeftRadius(), style); |
| 246 case CSSPropertyBorderTopRightRadius: | 247 case CSSPropertyBorderTopRightRadius: |
| 247 return createFromLengthSize(style->borderTopRightRadius(), style); | 248 return createFromLengthSize(style->borderTopRightRadius(), style); |
| 248 case CSSPropertyBorderTopWidth: | 249 case CSSPropertyBorderTopWidth: |
| 249 return createFromDouble(style->borderTopWidth()); | 250 return createFromDouble(style->borderTopWidth()); |
| 250 case CSSPropertyBottom: | 251 case CSSPropertyBottom: |
| 251 return createFromLength(style->bottom(), style); | 252 return createFromLength(style->bottom(), style); |
| 253 case CSSPropertyBoxShadow: |
| 254 case CSSPropertyWebkitBoxShadow: |
| 255 return AnimatableShadow::create(style->boxShadow()); |
| 252 case CSSPropertyClip: | 256 case CSSPropertyClip: |
| 253 if (style->hasClip()) | 257 if (style->hasClip()) |
| 254 return createFromLengthBox(style->clip(), style); | 258 return createFromLengthBox(style->clip(), style); |
| 255 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueAuto)
); | 259 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueAuto)
); |
| 256 case CSSPropertyColor: | 260 case CSSPropertyColor: |
| 257 return createFromColor(property, style); | 261 return createFromColor(property, style); |
| 258 case CSSPropertyFillOpacity: | 262 case CSSPropertyFillOpacity: |
| 259 return createFromDouble(style->fillOpacity()); | 263 return createFromDouble(style->fillOpacity()); |
| 260 case CSSPropertyFill: | 264 case CSSPropertyFill: |
| 261 return AnimatableSVGPaint::create(style->svgStyle()->fillPaintType(), st
yle->svgStyle()->fillPaintColor(), style->svgStyle()->fillPaintUri()); | 265 return AnimatableSVGPaint::create(style->svgStyle()->fillPaintType(), st
yle->svgStyle()->fillPaintColor(), style->svgStyle()->fillPaintUri()); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 case CSSPropertyStrokeMiterlimit: | 342 case CSSPropertyStrokeMiterlimit: |
| 339 return createFromDouble(style->strokeMiterLimit()); | 343 return createFromDouble(style->strokeMiterLimit()); |
| 340 case CSSPropertyStrokeOpacity: | 344 case CSSPropertyStrokeOpacity: |
| 341 return createFromDouble(style->strokeOpacity()); | 345 return createFromDouble(style->strokeOpacity()); |
| 342 case CSSPropertyStroke: | 346 case CSSPropertyStroke: |
| 343 return AnimatableSVGPaint::create(style->svgStyle()->strokePaintType(),
style->svgStyle()->strokePaintColor(), style->svgStyle()->strokePaintUri()); | 347 return AnimatableSVGPaint::create(style->svgStyle()->strokePaintType(),
style->svgStyle()->strokePaintColor(), style->svgStyle()->strokePaintUri()); |
| 344 case CSSPropertyTextDecorationColor: | 348 case CSSPropertyTextDecorationColor: |
| 345 return createFromColor(property, style); | 349 return createFromColor(property, style); |
| 346 case CSSPropertyTextIndent: | 350 case CSSPropertyTextIndent: |
| 347 return createFromLength(style->textIndent(), style); | 351 return createFromLength(style->textIndent(), style); |
| 352 case CSSPropertyTextShadow: |
| 353 return AnimatableShadow::create(style->textShadow()); |
| 348 case CSSPropertyTop: | 354 case CSSPropertyTop: |
| 349 return createFromLength(style->top(), style); | 355 return createFromLength(style->top(), style); |
| 350 case CSSPropertyWebkitBorderHorizontalSpacing: | 356 case CSSPropertyWebkitBorderHorizontalSpacing: |
| 351 return createFromDouble(style->horizontalBorderSpacing()); | 357 return createFromDouble(style->horizontalBorderSpacing()); |
| 352 case CSSPropertyWebkitBorderVerticalSpacing: | 358 case CSSPropertyWebkitBorderVerticalSpacing: |
| 353 return createFromDouble(style->verticalBorderSpacing()); | 359 return createFromDouble(style->verticalBorderSpacing()); |
| 354 case CSSPropertyWebkitClipPath: | 360 case CSSPropertyWebkitClipPath: |
| 355 return AnimatableClipPathOperation::create(style->clipPath()); | 361 return AnimatableClipPathOperation::create(style->clipPath()); |
| 356 case CSSPropertyWebkitColumnCount: | 362 case CSSPropertyWebkitColumnCount: |
| 357 return createFromDouble(style->columnCount()); | 363 return createFromDouble(style->columnCount()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 case CSSPropertyZoom: | 422 case CSSPropertyZoom: |
| 417 return createFromDouble(style->zoom()); | 423 return createFromDouble(style->zoom()); |
| 418 default: | 424 default: |
| 419 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert
y), "Web Animations not yet implemented: Create AnimatableValue from render styl
e: %s", getPropertyNameString(property).utf8().data()); | 425 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert
y), "Web Animations not yet implemented: Create AnimatableValue from render styl
e: %s", getPropertyNameString(property).utf8().data()); |
| 420 ASSERT_NOT_REACHED(); | 426 ASSERT_NOT_REACHED(); |
| 421 return 0; | 427 return 0; |
| 422 } | 428 } |
| 423 } | 429 } |
| 424 | 430 |
| 425 } // namespace WebCore | 431 } // namespace WebCore |
| OLD | NEW |