Chromium Code Reviews| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 404 return; | 404 return; |
| 405 case CSSPropertyBorderTopWidth: | 405 case CSSPropertyBorderTopWidth: |
| 406 style->setBorderTopWidth(animatableLineWidthClamp<unsigned>(value)); | 406 style->setBorderTopWidth(animatableLineWidthClamp<unsigned>(value)); |
| 407 return; | 407 return; |
| 408 case CSSPropertyBottom: | 408 case CSSPropertyBottom: |
| 409 style->setBottom(animatableValueToLength(value, state)); | 409 style->setBottom(animatableValueToLength(value, state)); |
| 410 return; | 410 return; |
| 411 case CSSPropertyBoxShadow: | 411 case CSSPropertyBoxShadow: |
| 412 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); | 412 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); |
| 413 return; | 413 return; |
| 414 case CSSPropertyCaretColor: | |
|
yosin_UTC9
2016/11/22 02:25:10
Nice! (^_^)b
| |
| 415 style->setCaretColor(toAnimatableColor(value)->getColor()); | |
| 416 style->setVisitedLinkCaretColor( | |
| 417 toAnimatableColor(value)->visitedLinkColor()); | |
| 418 return; | |
| 414 case CSSPropertyClip: | 419 case CSSPropertyClip: |
| 415 style->setClip(animatableValueToLengthBox(value, state)); | 420 style->setClip(animatableValueToLengthBox(value, state)); |
| 416 return; | 421 return; |
| 417 case CSSPropertyColor: | 422 case CSSPropertyColor: |
| 418 style->setColor(toAnimatableColor(value)->getColor()); | 423 style->setColor(toAnimatableColor(value)->getColor()); |
| 419 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()); | 424 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()); |
| 420 return; | 425 return; |
| 421 case CSSPropertyFillOpacity: | 426 case CSSPropertyFillOpacity: |
| 422 style->setFillOpacity( | 427 style->setFillOpacity( |
| 423 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); | 428 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 831 style->setRy( | 836 style->setRy( |
| 832 animatableValueToLength(value, state, ValueRangeNonNegative)); | 837 animatableValueToLength(value, state, ValueRangeNonNegative)); |
| 833 return; | 838 return; |
| 834 | 839 |
| 835 default: | 840 default: |
| 836 ASSERT_NOT_REACHED(); | 841 ASSERT_NOT_REACHED(); |
| 837 } | 842 } |
| 838 } | 843 } |
| 839 | 844 |
| 840 } // namespace blink | 845 } // namespace blink |
| OLD | NEW |