Chromium Code Reviews| 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 return createFromColor(property, style); | |
|
Timothy Loh
2016/11/28 03:11:21
I'm not sure if this is going to end up doing the
Manuel Rego
2016/11/28 10:47:55
Mmmm, interesting I didn't realize about that.
I'm
| |
| 410 case CSSPropertyColor: | 412 case CSSPropertyColor: |
| 411 return createFromColor(property, style); | 413 return createFromColor(property, style); |
| 412 case CSSPropertyFillOpacity: | 414 case CSSPropertyFillOpacity: |
| 413 return createFromDouble(style.fillOpacity()); | 415 return createFromDouble(style.fillOpacity()); |
| 414 case CSSPropertyFill: | 416 case CSSPropertyFill: |
| 415 return AnimatableSVGPaint::create( | 417 return AnimatableSVGPaint::create( |
| 416 normalizeSVGPaintType(style.svgStyle().fillPaintType()), | 418 normalizeSVGPaintType(style.svgStyle().fillPaintType()), |
| 417 normalizeSVGPaintType(style.svgStyle().visitedLinkFillPaintType()), | 419 normalizeSVGPaintType(style.svgStyle().visitedLinkFillPaintType()), |
| 418 style.svgStyle().fillPaintColor(), | 420 style.svgStyle().fillPaintColor(), |
| 419 style.svgStyle().visitedLinkFillPaintColor(), | 421 style.svgStyle().visitedLinkFillPaintColor(), |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 669 if (style.hasAutoZIndex()) | 671 if (style.hasAutoZIndex()) |
| 670 return AnimatableUnknown::create(CSSValueAuto); | 672 return AnimatableUnknown::create(CSSValueAuto); |
| 671 return createFromDouble(style.zIndex()); | 673 return createFromDouble(style.zIndex()); |
| 672 default: | 674 default: |
| 673 NOTREACHED(); | 675 NOTREACHED(); |
| 674 return nullptr; | 676 return nullptr; |
| 675 } | 677 } |
| 676 } | 678 } |
| 677 | 679 |
| 678 } // namespace blink | 680 } // namespace blink |
| OLD | NEW |