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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 case CSSPropertyBorderTopRightRadius: | 347 case CSSPropertyBorderTopRightRadius: |
348 style->setBorderTopRightRadius(animatableValueToLengthSize(value, state,
ValueRangeNonNegative)); | 348 style->setBorderTopRightRadius(animatableValueToLengthSize(value, state,
ValueRangeNonNegative)); |
349 return; | 349 return; |
350 case CSSPropertyBorderTopWidth: | 350 case CSSPropertyBorderTopWidth: |
351 style->setBorderTopWidth(animatableValueRoundClampTo<unsigned>(value)); | 351 style->setBorderTopWidth(animatableValueRoundClampTo<unsigned>(value)); |
352 return; | 352 return; |
353 case CSSPropertyBottom: | 353 case CSSPropertyBottom: |
354 style->setBottom(animatableValueToLength(value, state)); | 354 style->setBottom(animatableValueToLength(value, state)); |
355 return; | 355 return; |
356 case CSSPropertyBoxShadow: | 356 case CSSPropertyBoxShadow: |
357 case CSSPropertyWebkitBoxShadow: | |
358 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); | 357 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); |
359 return; | 358 return; |
360 case CSSPropertyClip: | 359 case CSSPropertyClip: |
361 style->setClip(animatableValueToLengthBox(value, state)); | 360 style->setClip(animatableValueToLengthBox(value, state)); |
362 return; | 361 return; |
363 case CSSPropertyColor: | 362 case CSSPropertyColor: |
364 style->setColor(toAnimatableColor(value)->color()); | 363 style->setColor(toAnimatableColor(value)->color()); |
365 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; | 364 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; |
366 return; | 365 return; |
367 case CSSPropertyFillOpacity: | 366 case CSSPropertyFillOpacity: |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 case CSSPropertyRy: | 666 case CSSPropertyRy: |
668 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 667 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
669 return; | 668 return; |
670 | 669 |
671 default: | 670 default: |
672 ASSERT_NOT_REACHED(); | 671 ASSERT_NOT_REACHED(); |
673 } | 672 } |
674 } | 673 } |
675 | 674 |
676 } // namespace blink | 675 } // namespace blink |
OLD | NEW |