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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 case CSSPropertyBackgroundSize: | 304 case CSSPropertyBackgroundSize: |
305 case CSSPropertyWebkitBackgroundSize: | 305 case CSSPropertyWebkitBackgroundSize: |
306 return createFromFillLayers<CSSPropertyBackgroundSize>(style.backgroundL
ayers(), style); | 306 return createFromFillLayers<CSSPropertyBackgroundSize>(style.backgroundL
ayers(), style); |
307 case CSSPropertyBaselineShift: | 307 case CSSPropertyBaselineShift: |
308 switch (style.svgStyle().baselineShift()) { | 308 switch (style.svgStyle().baselineShift()) { |
309 case BS_SUPER: | 309 case BS_SUPER: |
310 return AnimatableUnknown::create(CSSPrimitiveValue::createIdentifier
(CSSValueSuper)); | 310 return AnimatableUnknown::create(CSSPrimitiveValue::createIdentifier
(CSSValueSuper)); |
311 case BS_SUB: | 311 case BS_SUB: |
312 return AnimatableUnknown::create(CSSPrimitiveValue::createIdentifier
(CSSValueSub)); | 312 return AnimatableUnknown::create(CSSPrimitiveValue::createIdentifier
(CSSValueSub)); |
313 default: | 313 default: |
314 return AnimatableSVGLength::create(style.baselineShiftValue()); | 314 return createFromLength(style.baselineShiftValue(), style); |
315 } | 315 } |
316 case CSSPropertyBorderBottomColor: | 316 case CSSPropertyBorderBottomColor: |
317 return createFromColor(property, style); | 317 return createFromColor(property, style); |
318 case CSSPropertyBorderBottomLeftRadius: | 318 case CSSPropertyBorderBottomLeftRadius: |
319 return createFromLengthSize(style.borderBottomLeftRadius(), style); | 319 return createFromLengthSize(style.borderBottomLeftRadius(), style); |
320 case CSSPropertyBorderBottomRightRadius: | 320 case CSSPropertyBorderBottomRightRadius: |
321 return createFromLengthSize(style.borderBottomRightRadius(), style); | 321 return createFromLengthSize(style.borderBottomRightRadius(), style); |
322 case CSSPropertyBorderBottomWidth: | 322 case CSSPropertyBorderBottomWidth: |
323 return createFromDouble(style.borderBottomWidth()); | 323 return createFromDouble(style.borderBottomWidth()); |
324 case CSSPropertyBorderImageOutset: | 324 case CSSPropertyBorderImageOutset: |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 case CSSPropertyZIndex: | 535 case CSSPropertyZIndex: |
536 return createFromDouble(style.zIndex()); | 536 return createFromDouble(style.zIndex()); |
537 default: | 537 default: |
538 ASSERT_NOT_REACHED(); | 538 ASSERT_NOT_REACHED(); |
539 // This return value is to avoid a release crash if possible. | 539 // This return value is to avoid a release crash if possible. |
540 return AnimatableUnknown::create(nullptr); | 540 return AnimatableUnknown::create(nullptr); |
541 } | 541 } |
542 } | 542 } |
543 | 543 |
544 } // namespace blink | 544 } // namespace blink |
OLD | NEW |