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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 return; | 371 return; |
372 case CSSPropertyFontSize: | 372 case CSSPropertyFontSize: |
373 style->setFontSize(clampTo<float>(toAnimatableDouble(value)->toDouble(),
0)); | 373 style->setFontSize(clampTo<float>(toAnimatableDouble(value)->toDouble(),
0)); |
374 return; | 374 return; |
375 case CSSPropertyFontWeight: | 375 case CSSPropertyFontWeight: |
376 style->setFontWeight(animatableValueToFontWeight(value)); | 376 style->setFontWeight(animatableValueToFontWeight(value)); |
377 return; | 377 return; |
378 case CSSPropertyHeight: | 378 case CSSPropertyHeight: |
379 style->setHeight(animatableValueToLength(value, state, NonNegativeValues
)); | 379 style->setHeight(animatableValueToLength(value, state, NonNegativeValues
)); |
380 return; | 380 return; |
381 case CSSPropertyKerning: | |
382 style->setKerning(toAnimatableSVGLength(value)->toSVGLength()); | |
383 return; | |
384 case CSSPropertyLeft: | 381 case CSSPropertyLeft: |
385 style->setLeft(animatableValueToLength(value, state)); | 382 style->setLeft(animatableValueToLength(value, state)); |
386 return; | 383 return; |
387 case CSSPropertyLightingColor: | 384 case CSSPropertyLightingColor: |
388 style->setLightingColor(toAnimatableColor(value)->color()); | 385 style->setLightingColor(toAnimatableColor(value)->color()); |
389 return; | 386 return; |
390 case CSSPropertyLineHeight: | 387 case CSSPropertyLineHeight: |
391 if (value->isLength()) | 388 if (value->isLength()) |
392 style->setLineHeight(animatableValueToLength(value, state, NonNegati
veValues)); | 389 style->setLineHeight(animatableValueToLength(value, state, NonNegati
veValues)); |
393 else | 390 else |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 return; | 625 return; |
629 case CSSPropertyZoom: | 626 case CSSPropertyZoom: |
630 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); | 627 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std
::numeric_limits<float>::denorm_min())); |
631 return; | 628 return; |
632 default: | 629 default: |
633 ASSERT_NOT_REACHED(); | 630 ASSERT_NOT_REACHED(); |
634 } | 631 } |
635 } | 632 } |
636 | 633 |
637 } // namespace WebCore | 634 } // namespace WebCore |
OLD | NEW |