| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 case CSSPropertyBottom: | 400 case CSSPropertyBottom: |
| 401 return createFromLength(style.bottom(), style); | 401 return createFromLength(style.bottom(), style); |
| 402 case CSSPropertyBoxShadow: | 402 case CSSPropertyBoxShadow: |
| 403 return AnimatableShadow::create(style.boxShadow(), style.color()); | 403 return AnimatableShadow::create(style.boxShadow(), style.color()); |
| 404 case CSSPropertyClip: | 404 case CSSPropertyClip: |
| 405 if (style.hasAutoClip()) { | 405 if (style.hasAutoClip()) { |
| 406 return AnimatableUnknown::create( | 406 return AnimatableUnknown::create( |
| 407 CSSIdentifierValue::create(CSSValueAuto)); | 407 CSSIdentifierValue::create(CSSValueAuto)); |
| 408 } | 408 } |
| 409 return createFromLengthBox(style.clip(), style); | 409 return createFromLengthBox(style.clip(), style); |
| 410 case CSSPropertyCaretColor: |
| 411 if (style.caretColor().isAutoColor()) { |
| 412 return AnimatableUnknown::create( |
| 413 CSSIdentifierValue::create(CSSValueAuto)); |
| 414 } |
| 415 return createFromColor(property, style); |
| 410 case CSSPropertyColor: | 416 case CSSPropertyColor: |
| 411 return createFromColor(property, style); | 417 return createFromColor(property, style); |
| 412 case CSSPropertyFillOpacity: | 418 case CSSPropertyFillOpacity: |
| 413 return createFromDouble(style.fillOpacity()); | 419 return createFromDouble(style.fillOpacity()); |
| 414 case CSSPropertyFill: | 420 case CSSPropertyFill: |
| 415 return AnimatableSVGPaint::create( | 421 return AnimatableSVGPaint::create( |
| 416 normalizeSVGPaintType(style.svgStyle().fillPaintType()), | 422 normalizeSVGPaintType(style.svgStyle().fillPaintType()), |
| 417 normalizeSVGPaintType(style.svgStyle().visitedLinkFillPaintType()), | 423 normalizeSVGPaintType(style.svgStyle().visitedLinkFillPaintType()), |
| 418 style.svgStyle().fillPaintColor(), | 424 style.svgStyle().fillPaintColor(), |
| 419 style.svgStyle().visitedLinkFillPaintColor(), | 425 style.svgStyle().visitedLinkFillPaintColor(), |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 if (style.hasAutoZIndex()) | 676 if (style.hasAutoZIndex()) |
| 671 return AnimatableUnknown::create(CSSValueAuto); | 677 return AnimatableUnknown::create(CSSValueAuto); |
| 672 return createFromDouble(style.zIndex()); | 678 return createFromDouble(style.zIndex()); |
| 673 default: | 679 default: |
| 674 NOTREACHED(); | 680 NOTREACHED(); |
| 675 return nullptr; | 681 return nullptr; |
| 676 } | 682 } |
| 677 } | 683 } |
| 678 | 684 |
| 679 } // namespace blink | 685 } // namespace blink |
| OLD | NEW |