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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 case CSSPropertyBackgroundPositionX: | 286 case CSSPropertyBackgroundPositionX: |
287 setOnFillLayers<CSSPropertyBackgroundPositionX>(style->accessBackgroundL
ayers(), value, state); | 287 setOnFillLayers<CSSPropertyBackgroundPositionX>(style->accessBackgroundL
ayers(), value, state); |
288 return; | 288 return; |
289 case CSSPropertyBackgroundPositionY: | 289 case CSSPropertyBackgroundPositionY: |
290 setOnFillLayers<CSSPropertyBackgroundPositionY>(style->accessBackgroundL
ayers(), value, state); | 290 setOnFillLayers<CSSPropertyBackgroundPositionY>(style->accessBackgroundL
ayers(), value, state); |
291 return; | 291 return; |
292 case CSSPropertyBackgroundSize: | 292 case CSSPropertyBackgroundSize: |
293 setOnFillLayers<CSSPropertyBackgroundSize>(style->accessBackgroundLayers
(), value, state); | 293 setOnFillLayers<CSSPropertyBackgroundSize>(style->accessBackgroundLayers
(), value, state); |
294 return; | 294 return; |
295 case CSSPropertyBaselineShift: | 295 case CSSPropertyBaselineShift: |
296 style->setBaselineShiftValue(toAnimatableSVGLength(value)->toSVGLength()
); | 296 style->setBaselineShiftValue(animatableValueToLength(value, state)); |
297 return; | 297 return; |
298 case CSSPropertyBorderBottomColor: | 298 case CSSPropertyBorderBottomColor: |
299 style->setBorderBottomColor(toAnimatableColor(value)->color()); | 299 style->setBorderBottomColor(toAnimatableColor(value)->color()); |
300 style->setVisitedLinkBorderBottomColor(toAnimatableColor(value)->visited
LinkColor()); | 300 style->setVisitedLinkBorderBottomColor(toAnimatableColor(value)->visited
LinkColor()); |
301 return; | 301 return; |
302 case CSSPropertyBorderBottomLeftRadius: | 302 case CSSPropertyBorderBottomLeftRadius: |
303 style->setBorderBottomLeftRadius(animatableValueToLengthSize(value, stat
e, ValueRangeNonNegative)); | 303 style->setBorderBottomLeftRadius(animatableValueToLengthSize(value, stat
e, ValueRangeNonNegative)); |
304 return; | 304 return; |
305 case CSSPropertyBorderBottomRightRadius: | 305 case CSSPropertyBorderBottomRightRadius: |
306 style->setBorderBottomRightRadius(animatableValueToLengthSize(value, sta
te, ValueRangeNonNegative)); | 306 style->setBorderBottomRightRadius(animatableValueToLengthSize(value, sta
te, ValueRangeNonNegative)); |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 case CSSPropertyY: | 631 case CSSPropertyY: |
632 style->setY(animatableValueToLength(value, state)); | 632 style->setY(animatableValueToLength(value, state)); |
633 return; | 633 return; |
634 | 634 |
635 default: | 635 default: |
636 ASSERT_NOT_REACHED(); | 636 ASSERT_NOT_REACHED(); |
637 } | 637 } |
638 } | 638 } |
639 | 639 |
640 } // namespace blink | 640 } // namespace blink |
OLD | NEW |