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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 return; | 538 return; |
539 case CSSPropertyWebkitBorderHorizontalSpacing: | 539 case CSSPropertyWebkitBorderHorizontalSpacing: |
540 style->setHorizontalBorderSpacing(animatableValueClampTo<unsigned short>
(value)); | 540 style->setHorizontalBorderSpacing(animatableValueClampTo<unsigned short>
(value)); |
541 return; | 541 return; |
542 case CSSPropertyWebkitBorderVerticalSpacing: | 542 case CSSPropertyWebkitBorderVerticalSpacing: |
543 style->setVerticalBorderSpacing(animatableValueClampTo<unsigned short>(v
alue)); | 543 style->setVerticalBorderSpacing(animatableValueClampTo<unsigned short>(v
alue)); |
544 return; | 544 return; |
545 case CSSPropertyWebkitClipPath: | 545 case CSSPropertyWebkitClipPath: |
546 style->setClipPath(toAnimatableClipPathOperation(value)->clipPathOperati
on()); | 546 style->setClipPath(toAnimatableClipPathOperation(value)->clipPathOperati
on()); |
547 return; | 547 return; |
548 case CSSPropertyWebkitColumnCount: | 548 case CSSPropertyColumnCount: |
549 style->setColumnCount(clampTo<unsigned short>(round(toAnimatableDouble(v
alue)->toDouble()), 1)); | 549 style->setColumnCount(clampTo<unsigned short>(round(toAnimatableDouble(v
alue)->toDouble()), 1)); |
550 return; | 550 return; |
551 case CSSPropertyWebkitColumnGap: | 551 case CSSPropertyColumnGap: |
552 style->setColumnGap(clampTo(toAnimatableDouble(value)->toDouble(), 0)); | 552 style->setColumnGap(clampTo(toAnimatableDouble(value)->toDouble(), 0)); |
553 return; | 553 return; |
554 case CSSPropertyWebkitColumnRuleColor: | 554 case CSSPropertyColumnRuleColor: |
555 style->setColumnRuleColor(toAnimatableColor(value)->color()); | 555 style->setColumnRuleColor(toAnimatableColor(value)->color()); |
556 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi
nkColor()); | 556 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi
nkColor()); |
557 return; | 557 return; |
558 case CSSPropertyWebkitColumnWidth: | 558 case CSSPropertyColumnWidth: |
559 style->setColumnWidth(clampTo(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::epsilon())); | 559 style->setColumnWidth(clampTo(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::epsilon())); |
560 return; | 560 return; |
561 case CSSPropertyWebkitColumnRuleWidth: | 561 case CSSPropertyColumnRuleWidth: |
562 style->setColumnRuleWidth(animatableLineWidthClamp<unsigned short>(value
)); | 562 style->setColumnRuleWidth(animatableLineWidthClamp<unsigned short>(value
)); |
563 return; | 563 return; |
564 case CSSPropertyWebkitFilter: | 564 case CSSPropertyWebkitFilter: |
565 style->setFilter(toAnimatableFilterOperations(value)->operations()); | 565 style->setFilter(toAnimatableFilterOperations(value)->operations()); |
566 return; | 566 return; |
567 case CSSPropertyBackdropFilter: | 567 case CSSPropertyBackdropFilter: |
568 style->setBackdropFilter(toAnimatableFilterOperations(value)->operations
()); | 568 style->setBackdropFilter(toAnimatableFilterOperations(value)->operations
()); |
569 return; | 569 return; |
570 case CSSPropertyWebkitMaskBoxImageOutset: | 570 case CSSPropertyWebkitMaskBoxImageOutset: |
571 style->setMaskBoxImageOutset(animatableValueToBorderImageLengthBox(value
, state)); | 571 style->setMaskBoxImageOutset(animatableValueToBorderImageLengthBox(value
, state)); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 case CSSPropertyRy: | 706 case CSSPropertyRy: |
707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); | 707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative
)); |
708 return; | 708 return; |
709 | 709 |
710 default: | 710 default: |
711 ASSERT_NOT_REACHED(); | 711 ASSERT_NOT_REACHED(); |
712 } | 712 } |
713 } | 713 } |
714 | 714 |
715 } // namespace blink | 715 } // namespace blink |
OLD | NEW |