| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 case CSSPropertyBorderTopRightRadius: | 316 case CSSPropertyBorderTopRightRadius: |
| 317 return createFromLengthSize(style.borderTopRightRadius(), style); | 317 return createFromLengthSize(style.borderTopRightRadius(), style); |
| 318 case CSSPropertyBorderTopWidth: | 318 case CSSPropertyBorderTopWidth: |
| 319 return createFromDouble(style.borderTopWidth()); | 319 return createFromDouble(style.borderTopWidth()); |
| 320 case CSSPropertyBottom: | 320 case CSSPropertyBottom: |
| 321 return createFromLength(style.bottom(), style); | 321 return createFromLength(style.bottom(), style); |
| 322 case CSSPropertyBoxShadow: | 322 case CSSPropertyBoxShadow: |
| 323 case CSSPropertyWebkitBoxShadow: | 323 case CSSPropertyWebkitBoxShadow: |
| 324 return AnimatableShadow::create(style.boxShadow()); | 324 return AnimatableShadow::create(style.boxShadow()); |
| 325 case CSSPropertyClip: | 325 case CSSPropertyClip: |
| 326 if (style.hasClip()) | 326 if (style.hasAutoClip()) |
| 327 return createFromLengthBox(style.clip(), style); | 327 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueA
uto)); |
| 328 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueAuto)
); | 328 return createFromLengthBox(style.clip(), style); |
| 329 case CSSPropertyColor: | 329 case CSSPropertyColor: |
| 330 return createFromColor(property, style); | 330 return createFromColor(property, style); |
| 331 case CSSPropertyFillOpacity: | 331 case CSSPropertyFillOpacity: |
| 332 return createFromDouble(style.fillOpacity()); | 332 return createFromDouble(style.fillOpacity()); |
| 333 case CSSPropertyFill: | 333 case CSSPropertyFill: |
| 334 return AnimatableSVGPaint::create( | 334 return AnimatableSVGPaint::create( |
| 335 style.svgStyle().fillPaintType(), style.svgStyle().visitedLinkFillPa
intType(), | 335 style.svgStyle().fillPaintType(), style.svgStyle().visitedLinkFillPa
intType(), |
| 336 style.svgStyle().fillPaintColor(), style.svgStyle().visitedLinkFillP
aintColor(), | 336 style.svgStyle().fillPaintColor(), style.svgStyle().visitedLinkFillP
aintColor(), |
| 337 style.svgStyle().fillPaintUri(), style.svgStyle().visitedLinkFillPai
ntUri()); | 337 style.svgStyle().fillPaintUri(), style.svgStyle().visitedLinkFillPai
ntUri()); |
| 338 case CSSPropertyFlexGrow: | 338 case CSSPropertyFlexGrow: |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 case CSSPropertyZoom: | 506 case CSSPropertyZoom: |
| 507 return createFromDouble(style.zoom()); | 507 return createFromDouble(style.zoom()); |
| 508 default: | 508 default: |
| 509 ASSERT_NOT_REACHED(); | 509 ASSERT_NOT_REACHED(); |
| 510 // This return value is to avoid a release crash if possible. | 510 // This return value is to avoid a release crash if possible. |
| 511 return AnimatableUnknown::create(nullptr); | 511 return AnimatableUnknown::create(nullptr); |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| 515 } // namespace blink | 515 } // namespace blink |
| OLD | NEW |