| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 case CSSPropertyMinWidth: | 377 case CSSPropertyMinWidth: |
| 378 style->setMinWidth(animatableValueToLength(value, state, ValueRangeNonNe
gative)); | 378 style->setMinWidth(animatableValueToLength(value, state, ValueRangeNonNe
gative)); |
| 379 return; | 379 return; |
| 380 case CSSPropertyObjectPosition: | 380 case CSSPropertyObjectPosition: |
| 381 style->setObjectPosition(animatableValueToLengthPoint(value, state)); | 381 style->setObjectPosition(animatableValueToLengthPoint(value, state)); |
| 382 return; | 382 return; |
| 383 case CSSPropertyOpacity: | 383 case CSSPropertyOpacity: |
| 384 // Avoiding a value of 1 forces a layer to be created. | 384 // Avoiding a value of 1 forces a layer to be created. |
| 385 style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(),
0, nextafterf(1, 0))); | 385 style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(),
0, nextafterf(1, 0))); |
| 386 return; | 386 return; |
| 387 case CSSPropertyOrphans: | |
| 388 style->setOrphans(animatableValueRoundClampTo<unsigned short>(value, 1))
; | |
| 389 return; | |
| 390 case CSSPropertyOutlineColor: | 387 case CSSPropertyOutlineColor: |
| 391 style->setOutlineColor(toAnimatableColor(value)->color()); | 388 style->setOutlineColor(toAnimatableColor(value)->color()); |
| 392 return; | 389 return; |
| 393 case CSSPropertyOutlineOffset: | 390 case CSSPropertyOutlineOffset: |
| 394 style->setOutlineOffset(animatableValueRoundClampTo<int>(value)); | 391 style->setOutlineOffset(animatableValueRoundClampTo<int>(value)); |
| 395 return; | 392 return; |
| 396 case CSSPropertyOutlineWidth: | 393 case CSSPropertyOutlineWidth: |
| 397 style->setOutlineWidth(animatableValueRoundClampTo<unsigned short>(value
)); | 394 style->setOutlineWidth(animatableValueRoundClampTo<unsigned short>(value
)); |
| 398 return; | 395 return; |
| 399 case CSSPropertyPaddingBottom: | 396 case CSSPropertyPaddingBottom: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 return; | 474 return; |
| 478 case CSSPropertyZIndex: | 475 case CSSPropertyZIndex: |
| 479 style->setZIndex(animatableValueRoundClampTo<unsigned>(value)); | 476 style->setZIndex(animatableValueRoundClampTo<unsigned>(value)); |
| 480 return; | 477 return; |
| 481 default: | 478 default: |
| 482 ASSERT_NOT_REACHED(); | 479 ASSERT_NOT_REACHED(); |
| 483 } | 480 } |
| 484 } | 481 } |
| 485 | 482 |
| 486 } // namespace blink | 483 } // namespace blink |
| OLD | NEW |