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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 case CSSPropertyWidth: | 521 case CSSPropertyWidth: |
522 return createFromLength(style.width(), style); | 522 return createFromLength(style.width(), style); |
523 case CSSPropertyWordSpacing: | 523 case CSSPropertyWordSpacing: |
524 return createFromDouble(style.wordSpacing()); | 524 return createFromDouble(style.wordSpacing()); |
525 case CSSPropertyVerticalAlign: | 525 case CSSPropertyVerticalAlign: |
526 if (style.verticalAlign() == LENGTH) | 526 if (style.verticalAlign() == LENGTH) |
527 return createFromLength(style.verticalAlignLength(), style); | 527 return createFromLength(style.verticalAlignLength(), style); |
528 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica
lAlign())); | 528 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica
lAlign())); |
529 case CSSPropertyVisibility: | 529 case CSSPropertyVisibility: |
530 return AnimatableVisibility::create(style.visibility()); | 530 return AnimatableVisibility::create(style.visibility()); |
| 531 case CSSPropertyCx: |
| 532 return createFromLength(style.svgStyle().cx(), style); |
| 533 case CSSPropertyCy: |
| 534 return createFromLength(style.svgStyle().cy(), style); |
531 case CSSPropertyX: | 535 case CSSPropertyX: |
532 return createFromLength(style.svgStyle().x(), style); | 536 return createFromLength(style.svgStyle().x(), style); |
533 case CSSPropertyY: | 537 case CSSPropertyY: |
534 return createFromLength(style.svgStyle().y(), style); | 538 return createFromLength(style.svgStyle().y(), style); |
| 539 case CSSPropertyR: |
| 540 return createFromLength(style.svgStyle().r(), style); |
535 case CSSPropertyRx: | 541 case CSSPropertyRx: |
536 return createFromLength(style.svgStyle().rx(), style); | 542 return createFromLength(style.svgStyle().rx(), style); |
537 case CSSPropertyRy: | 543 case CSSPropertyRy: |
538 return createFromLength(style.svgStyle().ry(), style); | 544 return createFromLength(style.svgStyle().ry(), style); |
539 case CSSPropertyZIndex: | 545 case CSSPropertyZIndex: |
540 return createFromDouble(style.zIndex()); | 546 return createFromDouble(style.zIndex()); |
541 default: | 547 default: |
542 ASSERT_NOT_REACHED(); | 548 ASSERT_NOT_REACHED(); |
543 // This return value is to avoid a release crash if possible. | 549 // This return value is to avoid a release crash if possible. |
544 return AnimatableUnknown::create(nullptr); | 550 return AnimatableUnknown::create(nullptr); |
545 } | 551 } |
546 } | 552 } |
547 | 553 |
548 } // namespace blink | 554 } // namespace blink |
OLD | NEW |