Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 962763003: Use Length for the stroke-dashoffset property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make font-size explicit. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
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());
444 case CSSPropertyStrokeDashoffset: 444 case CSSPropertyStrokeDashoffset:
445 return AnimatableSVGLength::create(style.strokeDashOffset()); 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(),
454 style.svgStyle().strokePaintUri(), style.svgStyle().visitedLinkStrok ePaintUri()); 454 style.svgStyle().strokePaintUri(), style.svgStyle().visitedLinkStrok ePaintUri());
455 case CSSPropertyTextDecorationColor: 455 case CSSPropertyTextDecorationColor:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/animation/css/CSSPropertyEquality.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698