| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 return; | 340 return; |
| 341 case CSSPropertyLeft: | 341 case CSSPropertyLeft: |
| 342 style->setLeft(animatableValueToLength(value, state)); | 342 style->setLeft(animatableValueToLength(value, state)); |
| 343 return; | 343 return; |
| 344 case CSSPropertyLineHeight: | 344 case CSSPropertyLineHeight: |
| 345 if (value->isLength()) | 345 if (value->isLength()) |
| 346 style->setLineHeight(animatableValueToLength(value, state, ValueRang
eNonNegative)); | 346 style->setLineHeight(animatableValueToLength(value, state, ValueRang
eNonNegative)); |
| 347 else | 347 else |
| 348 style->setLineHeight(Length(clampTo<float>(toAnimatableDouble(value)
->toDouble(), 0), Percent)); | 348 style->setLineHeight(Length(clampTo<float>(toAnimatableDouble(value)
->toDouble(), 0), Percent)); |
| 349 return; | 349 return; |
| 350 case CSSPropertyListStyleImage: | |
| 351 style->setListStyleImage(state.styleImage(property, toAnimatableImage(va
lue)->toCSSValue())); | |
| 352 return; | |
| 353 case CSSPropertyLetterSpacing: | 350 case CSSPropertyLetterSpacing: |
| 354 style->setLetterSpacing(clampTo<float>(toAnimatableDouble(value)->toDoub
le())); | 351 style->setLetterSpacing(clampTo<float>(toAnimatableDouble(value)->toDoub
le())); |
| 355 return; | 352 return; |
| 356 case CSSPropertyMarginBottom: | 353 case CSSPropertyMarginBottom: |
| 357 style->setMarginBottom(animatableValueToLength(value, state)); | 354 style->setMarginBottom(animatableValueToLength(value, state)); |
| 358 return; | 355 return; |
| 359 case CSSPropertyMarginLeft: | 356 case CSSPropertyMarginLeft: |
| 360 style->setMarginLeft(animatableValueToLength(value, state)); | 357 style->setMarginLeft(animatableValueToLength(value, state)); |
| 361 return; | 358 return; |
| 362 case CSSPropertyMarginRight: | 359 case CSSPropertyMarginRight: |
| (...skipping 114 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 |