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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 return createFromLength(style.bottom(), style); | 306 return createFromLength(style.bottom(), style); |
307 case CSSPropertyBoxShadow: | 307 case CSSPropertyBoxShadow: |
308 case CSSPropertyWebkitBoxShadow: | 308 case CSSPropertyWebkitBoxShadow: |
309 return AnimatableShadow::create(style.boxShadow()); | 309 return AnimatableShadow::create(style.boxShadow()); |
310 case CSSPropertyClip: | 310 case CSSPropertyClip: |
311 if (style.hasAutoClip()) | 311 if (style.hasAutoClip()) |
312 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueA
uto)); | 312 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueA
uto)); |
313 return createFromLengthBox(style.clip(), style); | 313 return createFromLengthBox(style.clip(), style); |
314 case CSSPropertyColor: | 314 case CSSPropertyColor: |
315 return createFromColor(property, style); | 315 return createFromColor(property, style); |
| 316 case CSSPropertyFilter: |
| 317 return AnimatableFilterOperations::create(style.filter()); |
316 case CSSPropertyFlexGrow: | 318 case CSSPropertyFlexGrow: |
317 return createFromDouble(style.flexGrow(), AnimatableDouble::Interpolatio
nIsNonContinuousWithZero); | 319 return createFromDouble(style.flexGrow(), AnimatableDouble::Interpolatio
nIsNonContinuousWithZero); |
318 case CSSPropertyFlexShrink: | 320 case CSSPropertyFlexShrink: |
319 return createFromDouble(style.flexShrink(), AnimatableDouble::Interpolat
ionIsNonContinuousWithZero); | 321 return createFromDouble(style.flexShrink(), AnimatableDouble::Interpolat
ionIsNonContinuousWithZero); |
320 case CSSPropertyFlexBasis: | 322 case CSSPropertyFlexBasis: |
321 return createFromLength(style.flexBasis(), style); | 323 return createFromLength(style.flexBasis(), style); |
322 case CSSPropertyFontSize: | 324 case CSSPropertyFontSize: |
323 // Must pass a specified size to setFontSize if Text Autosizing is enabl
ed, but a computed size | 325 // Must pass a specified size to setFontSize if Text Autosizing is enabl
ed, but a computed size |
324 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). | 326 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). |
325 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to | 327 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 case CSSPropertyTop: | 388 case CSSPropertyTop: |
387 return createFromLength(style.top(), style); | 389 return createFromLength(style.top(), style); |
388 case CSSPropertyWebkitBorderHorizontalSpacing: | 390 case CSSPropertyWebkitBorderHorizontalSpacing: |
389 return createFromDouble(style.horizontalBorderSpacing()); | 391 return createFromDouble(style.horizontalBorderSpacing()); |
390 case CSSPropertyWebkitBorderVerticalSpacing: | 392 case CSSPropertyWebkitBorderVerticalSpacing: |
391 return createFromDouble(style.verticalBorderSpacing()); | 393 return createFromDouble(style.verticalBorderSpacing()); |
392 case CSSPropertyWebkitClipPath: | 394 case CSSPropertyWebkitClipPath: |
393 if (ClipPathOperation* operation = style.clipPath()) | 395 if (ClipPathOperation* operation = style.clipPath()) |
394 return AnimatableClipPathOperation::create(operation); | 396 return AnimatableClipPathOperation::create(operation); |
395 return AnimatableUnknown::create(CSSValueNone); | 397 return AnimatableUnknown::create(CSSValueNone); |
396 case CSSPropertyWebkitFilter: | |
397 return AnimatableFilterOperations::create(style.filter()); | |
398 case CSSPropertyWebkitMaskBoxImageOutset: | 398 case CSSPropertyWebkitMaskBoxImageOutset: |
399 return createFromBorderImageLengthBox(style.maskBoxImageOutset(), style)
; | 399 return createFromBorderImageLengthBox(style.maskBoxImageOutset(), style)
; |
400 case CSSPropertyWebkitMaskBoxImageSlice: | 400 case CSSPropertyWebkitMaskBoxImageSlice: |
401 return createFromLengthBoxAndBool(style.maskBoxImageSlices(), style.mask
BoxImageSlicesFill(), style); | 401 return createFromLengthBoxAndBool(style.maskBoxImageSlices(), style.mask
BoxImageSlicesFill(), style); |
402 case CSSPropertyWebkitMaskBoxImageSource: | 402 case CSSPropertyWebkitMaskBoxImageSource: |
403 return createFromStyleImage(style.maskBoxImageSource()); | 403 return createFromStyleImage(style.maskBoxImageSource()); |
404 case CSSPropertyWebkitMaskBoxImageWidth: | 404 case CSSPropertyWebkitMaskBoxImageWidth: |
405 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style); | 405 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style); |
406 case CSSPropertyWebkitMaskImage: | 406 case CSSPropertyWebkitMaskImage: |
407 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers
(), style); | 407 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers
(), style); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 case CSSPropertyZIndex: | 439 case CSSPropertyZIndex: |
440 return createFromDouble(style.zIndex()); | 440 return createFromDouble(style.zIndex()); |
441 default: | 441 default: |
442 ASSERT_NOT_REACHED(); | 442 ASSERT_NOT_REACHED(); |
443 // This return value is to avoid a release crash if possible. | 443 // This return value is to avoid a release crash if possible. |
444 return AnimatableUnknown::create(nullptr); | 444 return AnimatableUnknown::create(nullptr); |
445 } | 445 } |
446 } | 446 } |
447 | 447 |
448 } // namespace blink | 448 } // namespace blink |
OLD | NEW |