| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 return createFromColor(propertyID, style); | 411 return createFromColor(propertyID, style); |
| 412 case CSSPropertyBorderTopLeftRadius: | 412 case CSSPropertyBorderTopLeftRadius: |
| 413 return createFromLengthSize(style.borderTopLeftRadius(), style); | 413 return createFromLengthSize(style.borderTopLeftRadius(), style); |
| 414 case CSSPropertyBorderTopRightRadius: | 414 case CSSPropertyBorderTopRightRadius: |
| 415 return createFromLengthSize(style.borderTopRightRadius(), style); | 415 return createFromLengthSize(style.borderTopRightRadius(), style); |
| 416 case CSSPropertyBorderTopWidth: | 416 case CSSPropertyBorderTopWidth: |
| 417 return createFromPropertyLength(propertyID, style); | 417 return createFromPropertyLength(propertyID, style); |
| 418 case CSSPropertyBottom: | 418 case CSSPropertyBottom: |
| 419 return createFromLength(style.bottom(), style); | 419 return createFromLength(style.bottom(), style); |
| 420 case CSSPropertyBoxShadow: | 420 case CSSPropertyBoxShadow: |
| 421 return AnimatableShadow::create(style.boxShadow(), style.color()); | 421 return AnimatableShadow::create(style.boxShadow()); |
| 422 case CSSPropertyClip: | 422 case CSSPropertyClip: |
| 423 if (style.hasAutoClip()) { | 423 if (style.hasAutoClip()) { |
| 424 return AnimatableUnknown::create( | 424 return AnimatableUnknown::create( |
| 425 CSSIdentifierValue::create(CSSValueAuto)); | 425 CSSIdentifierValue::create(CSSValueAuto)); |
| 426 } | 426 } |
| 427 return createFromLengthBox(style.clip(), style); | 427 return createFromLengthBox(style.clip(), style); |
| 428 case CSSPropertyCaretColor: | 428 case CSSPropertyCaretColor: |
| 429 if (style.caretColor().isAutoColor()) { | 429 if (style.caretColor().isAutoColor()) { |
| 430 return AnimatableUnknown::create( | 430 return AnimatableUnknown::create( |
| 431 CSSIdentifierValue::create(CSSValueAuto)); | 431 CSSIdentifierValue::create(CSSValueAuto)); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 normalizeSVGPaintType(style.svgStyle().visitedLinkStrokePaintType()), | 542 normalizeSVGPaintType(style.svgStyle().visitedLinkStrokePaintType()), |
| 543 style.svgStyle().strokePaintColor(), | 543 style.svgStyle().strokePaintColor(), |
| 544 style.svgStyle().visitedLinkStrokePaintColor(), | 544 style.svgStyle().visitedLinkStrokePaintColor(), |
| 545 style.svgStyle().strokePaintUri(), | 545 style.svgStyle().strokePaintUri(), |
| 546 style.svgStyle().visitedLinkStrokePaintUri()); | 546 style.svgStyle().visitedLinkStrokePaintUri()); |
| 547 case CSSPropertyTextDecorationColor: | 547 case CSSPropertyTextDecorationColor: |
| 548 return createFromColor(propertyID, style); | 548 return createFromColor(propertyID, style); |
| 549 case CSSPropertyTextIndent: | 549 case CSSPropertyTextIndent: |
| 550 return createFromLength(style.textIndent(), style); | 550 return createFromLength(style.textIndent(), style); |
| 551 case CSSPropertyTextShadow: | 551 case CSSPropertyTextShadow: |
| 552 return AnimatableShadow::create(style.textShadow(), style.color()); | 552 return AnimatableShadow::create(style.textShadow()); |
| 553 case CSSPropertyTop: | 553 case CSSPropertyTop: |
| 554 return createFromLength(style.top(), style); | 554 return createFromLength(style.top(), style); |
| 555 case CSSPropertyWebkitBorderHorizontalSpacing: | 555 case CSSPropertyWebkitBorderHorizontalSpacing: |
| 556 return createFromPropertyLength(propertyID, style); | 556 return createFromPropertyLength(propertyID, style); |
| 557 case CSSPropertyWebkitBorderVerticalSpacing: | 557 case CSSPropertyWebkitBorderVerticalSpacing: |
| 558 return createFromPropertyLength(propertyID, style); | 558 return createFromPropertyLength(propertyID, style); |
| 559 case CSSPropertyClipPath: | 559 case CSSPropertyClipPath: |
| 560 if (ClipPathOperation* operation = style.clipPath()) | 560 if (ClipPathOperation* operation = style.clipPath()) |
| 561 return AnimatableClipPathOperation::create(operation); | 561 return AnimatableClipPathOperation::create(operation); |
| 562 return AnimatableUnknown::create(CSSValueNone); | 562 return AnimatableUnknown::create(CSSValueNone); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 if (style.hasAutoZIndex()) | 686 if (style.hasAutoZIndex()) |
| 687 return AnimatableUnknown::create(CSSValueAuto); | 687 return AnimatableUnknown::create(CSSValueAuto); |
| 688 return createFromDouble(style.zIndex()); | 688 return createFromDouble(style.zIndex()); |
| 689 default: | 689 default: |
| 690 NOTREACHED(); | 690 NOTREACHED(); |
| 691 return nullptr; | 691 return nullptr; |
| 692 } | 692 } |
| 693 } | 693 } |
| 694 | 694 |
| 695 } // namespace blink | 695 } // namespace blink |
| OLD | NEW |