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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 case CSSPropertyBorderTopWidth: | 414 case CSSPropertyBorderTopWidth: |
415 style->setBorderTopWidth( | 415 style->setBorderTopWidth( |
416 animatableLineWidthClamp<unsigned>(value, state)); | 416 animatableLineWidthClamp<unsigned>(value, state)); |
417 return; | 417 return; |
418 case CSSPropertyBottom: | 418 case CSSPropertyBottom: |
419 style->setBottom(animatableValueToLength(value, state)); | 419 style->setBottom(animatableValueToLength(value, state)); |
420 return; | 420 return; |
421 case CSSPropertyBoxShadow: | 421 case CSSPropertyBoxShadow: |
422 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); | 422 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); |
423 return; | 423 return; |
| 424 case CSSPropertyCaretColor: |
| 425 style->setCaretColor(toAnimatableColor(value)->getColor()); |
| 426 style->setVisitedLinkCaretColor( |
| 427 toAnimatableColor(value)->visitedLinkColor()); |
| 428 return; |
424 case CSSPropertyClip: | 429 case CSSPropertyClip: |
425 style->setClip(animatableValueToLengthBox(value, state)); | 430 style->setClip(animatableValueToLengthBox(value, state)); |
426 return; | 431 return; |
427 case CSSPropertyColor: | 432 case CSSPropertyColor: |
428 style->setColor(toAnimatableColor(value)->getColor()); | 433 style->setColor(toAnimatableColor(value)->getColor()); |
429 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()); | 434 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()); |
430 return; | 435 return; |
431 case CSSPropertyFillOpacity: | 436 case CSSPropertyFillOpacity: |
432 style->setFillOpacity( | 437 style->setFillOpacity( |
433 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); | 438 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 style->setRy( | 849 style->setRy( |
845 animatableValueToLength(value, state, ValueRangeNonNegative)); | 850 animatableValueToLength(value, state, ValueRangeNonNegative)); |
846 return; | 851 return; |
847 | 852 |
848 default: | 853 default: |
849 ASSERT_NOT_REACHED(); | 854 ASSERT_NOT_REACHED(); |
850 } | 855 } |
851 } | 856 } |
852 | 857 |
853 } // namespace blink | 858 } // namespace blink |
OLD | NEW |