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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 case CSSPropertyTop: | 481 case CSSPropertyTop: |
482 return createFromLength(style.top(), style); | 482 return createFromLength(style.top(), style); |
483 case CSSPropertyWebkitBorderHorizontalSpacing: | 483 case CSSPropertyWebkitBorderHorizontalSpacing: |
484 return createFromDouble(style.horizontalBorderSpacing()); | 484 return createFromDouble(style.horizontalBorderSpacing()); |
485 case CSSPropertyWebkitBorderVerticalSpacing: | 485 case CSSPropertyWebkitBorderVerticalSpacing: |
486 return createFromDouble(style.verticalBorderSpacing()); | 486 return createFromDouble(style.verticalBorderSpacing()); |
487 case CSSPropertyWebkitClipPath: | 487 case CSSPropertyWebkitClipPath: |
488 if (ClipPathOperation* operation = style.clipPath()) | 488 if (ClipPathOperation* operation = style.clipPath()) |
489 return AnimatableClipPathOperation::create(operation); | 489 return AnimatableClipPathOperation::create(operation); |
490 return AnimatableUnknown::create(CSSValueNone); | 490 return AnimatableUnknown::create(CSSValueNone); |
491 case CSSPropertyWebkitColumnCount: | 491 case CSSPropertyColumnCount: |
492 if (style.hasAutoColumnCount()) | 492 if (style.hasAutoColumnCount()) |
493 return AnimatableUnknown::create(CSSValueAuto); | 493 return AnimatableUnknown::create(CSSValueAuto); |
494 return createFromDouble(style.columnCount()); | 494 return createFromDouble(style.columnCount()); |
495 case CSSPropertyWebkitColumnGap: | 495 case CSSPropertyColumnGap: |
496 return createFromDouble(style.columnGap()); | 496 return createFromDouble(style.columnGap()); |
497 case CSSPropertyWebkitColumnRuleColor: | 497 case CSSPropertyColumnRuleColor: |
498 return createFromColor(property, style); | 498 return createFromColor(property, style); |
499 case CSSPropertyWebkitColumnRuleWidth: | 499 case CSSPropertyColumnRuleWidth: |
500 return createFromDouble(style.columnRuleWidth()); | 500 return createFromDouble(style.columnRuleWidth()); |
501 case CSSPropertyWebkitColumnWidth: | 501 case CSSPropertyColumnWidth: |
502 if (style.hasAutoColumnWidth()) | 502 if (style.hasAutoColumnWidth()) |
503 return AnimatableUnknown::create(CSSValueAuto); | 503 return AnimatableUnknown::create(CSSValueAuto); |
504 return createFromDouble(style.columnWidth()); | 504 return createFromDouble(style.columnWidth()); |
505 case CSSPropertyWebkitFilter: | 505 case CSSPropertyWebkitFilter: |
506 return AnimatableFilterOperations::create(style.filter()); | 506 return AnimatableFilterOperations::create(style.filter()); |
507 case CSSPropertyBackdropFilter: | 507 case CSSPropertyBackdropFilter: |
508 return AnimatableFilterOperations::create(style.backdropFilter()); | 508 return AnimatableFilterOperations::create(style.backdropFilter()); |
509 case CSSPropertyWebkitMaskBoxImageOutset: | 509 case CSSPropertyWebkitMaskBoxImageOutset: |
510 return createFromBorderImageLengthBox(style.maskBoxImageOutset(), style)
; | 510 return createFromBorderImageLengthBox(style.maskBoxImageOutset(), style)
; |
511 case CSSPropertyWebkitMaskBoxImageSlice: | 511 case CSSPropertyWebkitMaskBoxImageSlice: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 if (style.hasAutoZIndex()) | 598 if (style.hasAutoZIndex()) |
599 return AnimatableUnknown::create(CSSValueAuto); | 599 return AnimatableUnknown::create(CSSValueAuto); |
600 return createFromDouble(style.zIndex()); | 600 return createFromDouble(style.zIndex()); |
601 default: | 601 default: |
602 ASSERT_NOT_REACHED(); | 602 ASSERT_NOT_REACHED(); |
603 return nullptr; | 603 return nullptr; |
604 } | 604 } |
605 } | 605 } |
606 | 606 |
607 } // namespace blink | 607 } // namespace blink |
OLD | NEW |