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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 return; | 334 return; |
335 case CSSPropertyBottom: | 335 case CSSPropertyBottom: |
336 style->setBottom(animatableValueToLength(value, state)); | 336 style->setBottom(animatableValueToLength(value, state)); |
337 return; | 337 return; |
338 case CSSPropertyBoxShadow: | 338 case CSSPropertyBoxShadow: |
339 case CSSPropertyWebkitBoxShadow: | 339 case CSSPropertyWebkitBoxShadow: |
340 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); | 340 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); |
341 return; | 341 return; |
342 case CSSPropertyClip: | 342 case CSSPropertyClip: |
343 style->setClip(animatableValueToLengthBox(value, state)); | 343 style->setClip(animatableValueToLengthBox(value, state)); |
344 style->setHasClip(true); | |
345 return; | 344 return; |
346 case CSSPropertyColor: | 345 case CSSPropertyColor: |
347 style->setColor(toAnimatableColor(value)->color()); | 346 style->setColor(toAnimatableColor(value)->color()); |
348 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; | 347 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; |
349 return; | 348 return; |
350 case CSSPropertyFillOpacity: | 349 case CSSPropertyFillOpacity: |
351 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble
(), 0, 1)); | 350 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble
(), 0, 1)); |
352 return; | 351 return; |
353 case CSSPropertyFill: | 352 case CSSPropertyFill: |
354 { | 353 { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 return; | 612 return; |
614 case CSSPropertyZoom: | 613 case CSSPropertyZoom: |
615 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); | 614 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); |
616 return; | 615 return; |
617 default: | 616 default: |
618 ASSERT_NOT_REACHED(); | 617 ASSERT_NOT_REACHED(); |
619 } | 618 } |
620 } | 619 } |
621 | 620 |
622 } // namespace blink | 621 } // namespace blink |
OLD | NEW |