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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 return createFromLength(style.paddingTop(), style); | 433 return createFromLength(style.paddingTop(), style); |
434 case CSSPropertyRight: | 434 case CSSPropertyRight: |
435 return createFromLength(style.right(), style); | 435 return createFromLength(style.right(), style); |
436 case CSSPropertyStrokeWidth: | 436 case CSSPropertyStrokeWidth: |
437 return AnimatableSVGLength::create(style.strokeWidth()); | 437 return AnimatableSVGLength::create(style.strokeWidth()); |
438 case CSSPropertyStopColor: | 438 case CSSPropertyStopColor: |
439 return createFromColor(property, style); | 439 return createFromColor(property, style); |
440 case CSSPropertyStopOpacity: | 440 case CSSPropertyStopOpacity: |
441 return createFromDouble(style.stopOpacity()); | 441 return createFromDouble(style.stopOpacity()); |
442 case CSSPropertyStrokeDasharray: | 442 case CSSPropertyStrokeDasharray: |
443 return AnimatableStrokeDasharrayList::create(style.strokeDashArray()); | 443 return AnimatableStrokeDasharrayList::create(style.strokeDashArray(), st
yle.effectiveZoom()); |
444 case CSSPropertyStrokeDashoffset: | 444 case CSSPropertyStrokeDashoffset: |
445 return createFromLength(style.strokeDashOffset(), style); | 445 return createFromLength(style.strokeDashOffset(), style); |
446 case CSSPropertyStrokeMiterlimit: | 446 case CSSPropertyStrokeMiterlimit: |
447 return createFromDouble(style.strokeMiterLimit()); | 447 return createFromDouble(style.strokeMiterLimit()); |
448 case CSSPropertyStrokeOpacity: | 448 case CSSPropertyStrokeOpacity: |
449 return createFromDouble(style.strokeOpacity()); | 449 return createFromDouble(style.strokeOpacity()); |
450 case CSSPropertyStroke: | 450 case CSSPropertyStroke: |
451 return AnimatableSVGPaint::create( | 451 return AnimatableSVGPaint::create( |
452 normalizeSVGPaintType(style.svgStyle().strokePaintType()), normalize
SVGPaintType(style.svgStyle().visitedLinkStrokePaintType()), | 452 normalizeSVGPaintType(style.svgStyle().strokePaintType()), normalize
SVGPaintType(style.svgStyle().visitedLinkStrokePaintType()), |
453 style.svgStyle().strokePaintColor(), style.svgStyle().visitedLinkStr
okePaintColor(), | 453 style.svgStyle().strokePaintColor(), style.svgStyle().visitedLinkStr
okePaintColor(), |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 case CSSPropertyZIndex: | 539 case CSSPropertyZIndex: |
540 return createFromDouble(style.zIndex()); | 540 return createFromDouble(style.zIndex()); |
541 default: | 541 default: |
542 ASSERT_NOT_REACHED(); | 542 ASSERT_NOT_REACHED(); |
543 // This return value is to avoid a release crash if possible. | 543 // This return value is to avoid a release crash if possible. |
544 return AnimatableUnknown::create(nullptr); | 544 return AnimatableUnknown::create(nullptr); |
545 } | 545 } |
546 } | 546 } |
547 | 547 |
548 } // namespace blink | 548 } // namespace blink |
OLD | NEW |