| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 case CSSPropertyBorderTopRightRadius: | 362 case CSSPropertyBorderTopRightRadius: |
| 363 style->setBorderTopRightRadius(animatableValueToLengthSize(value, state,
ValueRangeNonNegative)); | 363 style->setBorderTopRightRadius(animatableValueToLengthSize(value, state,
ValueRangeNonNegative)); |
| 364 return; | 364 return; |
| 365 case CSSPropertyBorderTopWidth: | 365 case CSSPropertyBorderTopWidth: |
| 366 style->setBorderTopWidth(animatableLineWidthClamp<unsigned>(value)); | 366 style->setBorderTopWidth(animatableLineWidthClamp<unsigned>(value)); |
| 367 return; | 367 return; |
| 368 case CSSPropertyBottom: | 368 case CSSPropertyBottom: |
| 369 style->setBottom(animatableValueToLength(value, state)); | 369 style->setBottom(animatableValueToLength(value, state)); |
| 370 return; | 370 return; |
| 371 case CSSPropertyBoxShadow: | 371 case CSSPropertyBoxShadow: |
| 372 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); | 372 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); |
| 373 return; | 373 return; |
| 374 case CSSPropertyClip: | 374 case CSSPropertyClip: |
| 375 style->setClip(animatableValueToLengthBox(value, state)); | 375 style->setClip(animatableValueToLengthBox(value, state)); |
| 376 return; | 376 return; |
| 377 case CSSPropertyColor: | 377 case CSSPropertyColor: |
| 378 style->setColor(toAnimatableColor(value)->getColor()); | 378 style->setColor(toAnimatableColor(value)->getColor()); |
| 379 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; | 379 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor())
; |
| 380 return; | 380 return; |
| 381 case CSSPropertyFillOpacity: | 381 case CSSPropertyFillOpacity: |
| 382 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble
(), 0, 1)); | 382 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble
(), 0, 1)); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 } | 524 } |
| 525 return; | 525 return; |
| 526 case CSSPropertyTextDecorationColor: | 526 case CSSPropertyTextDecorationColor: |
| 527 style->setTextDecorationColor(toAnimatableColor(value)->getColor()); | 527 style->setTextDecorationColor(toAnimatableColor(value)->getColor()); |
| 528 style->setVisitedLinkTextDecorationColor(toAnimatableColor(value)->visit
edLinkColor()); | 528 style->setVisitedLinkTextDecorationColor(toAnimatableColor(value)->visit
edLinkColor()); |
| 529 return; | 529 return; |
| 530 case CSSPropertyTextIndent: | 530 case CSSPropertyTextIndent: |
| 531 style->setTextIndent(animatableValueToLength(value, state)); | 531 style->setTextIndent(animatableValueToLength(value, state)); |
| 532 return; | 532 return; |
| 533 case CSSPropertyTextShadow: | 533 case CSSPropertyTextShadow: |
| 534 style->setTextShadow(toAnimatableShadow(value)->shadowList()); | 534 style->setTextShadow(toAnimatableShadow(value)->getShadowList()); |
| 535 return; | 535 return; |
| 536 case CSSPropertyTop: | 536 case CSSPropertyTop: |
| 537 style->setTop(animatableValueToLength(value, state)); | 537 style->setTop(animatableValueToLength(value, state)); |
| 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)->getClipPathOper
ation()); |
| 547 return; | 547 return; |
| 548 case CSSPropertyColumnCount: | 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 CSSPropertyColumnGap: | 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 CSSPropertyColumnRuleColor: | 554 case CSSPropertyColumnRuleColor: |
| 555 style->setColumnRuleColor(toAnimatableColor(value)->getColor()); | 555 style->setColumnRuleColor(toAnimatableColor(value)->getColor()); |
| 556 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi
nkColor()); | 556 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi
nkColor()); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 case CSSPropertyWebkitMaskSize: | 592 case CSSPropertyWebkitMaskSize: |
| 593 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); | 593 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va
lue, state); |
| 594 return; | 594 return; |
| 595 case CSSPropertyPerspective: | 595 case CSSPropertyPerspective: |
| 596 style->setPerspective(value->isDouble() ? clampTo<float>(toAnimatableDou
ble(value)->toDouble()) : 0); | 596 style->setPerspective(value->isDouble() ? clampTo<float>(toAnimatableDou
ble(value)->toDouble()) : 0); |
| 597 return; | 597 return; |
| 598 case CSSPropertyPerspectiveOrigin: | 598 case CSSPropertyPerspectiveOrigin: |
| 599 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); | 599 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); |
| 600 return; | 600 return; |
| 601 case CSSPropertyShapeOutside: | 601 case CSSPropertyShapeOutside: |
| 602 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); | 602 style->setShapeOutside(toAnimatableShapeValue(value)->getShapeValue()); |
| 603 return; | 603 return; |
| 604 case CSSPropertyShapeMargin: | 604 case CSSPropertyShapeMargin: |
| 605 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); | 605 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo
nNegative)); |
| 606 return; | 606 return; |
| 607 case CSSPropertyShapeImageThreshold: | 607 case CSSPropertyShapeImageThreshold: |
| 608 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); | 608 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->
toDouble(), 0, 1)); |
| 609 return; | 609 return; |
| 610 case CSSPropertyWebkitTextStrokeColor: | 610 case CSSPropertyWebkitTextStrokeColor: |
| 611 style->setTextStrokeColor(toAnimatableColor(value)->getColor()); | 611 style->setTextStrokeColor(toAnimatableColor(value)->getColor()); |
| 612 style->setVisitedLinkTextStrokeColor(toAnimatableColor(value)->visitedLi
nkColor()); | 612 style->setVisitedLinkTextStrokeColor(toAnimatableColor(value)->visitedLi
nkColor()); |
| (...skipping 93 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 |