| 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 CSSPropertyX: |
| 532 return createFromLength(style.svgStyle().x(), style); |
| 533 case CSSPropertyY: |
| 534 return createFromLength(style.svgStyle().y(), style); |
| 531 case CSSPropertyZIndex: | 535 case CSSPropertyZIndex: |
| 532 return createFromDouble(style.zIndex()); | 536 return createFromDouble(style.zIndex()); |
| 533 case CSSPropertyZoom: | 537 case CSSPropertyZoom: |
| 534 return createFromDouble(style.zoom()); | 538 return createFromDouble(style.zoom()); |
| 535 default: | 539 default: |
| 536 ASSERT_NOT_REACHED(); | 540 ASSERT_NOT_REACHED(); |
| 537 // This return value is to avoid a release crash if possible. | 541 // This return value is to avoid a release crash if possible. |
| 538 return AnimatableUnknown::create(nullptr); | 542 return AnimatableUnknown::create(nullptr); |
| 539 } | 543 } |
| 540 } | 544 } |
| 541 | 545 |
| 542 } // namespace blink | 546 } // namespace blink |
| OLD | NEW |