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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 1473963004: CSS animation for SVG presentation attribute 'd' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oilpan Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 #include "core/animation/animatable/AnimatableDouble.h" 36 #include "core/animation/animatable/AnimatableDouble.h"
37 #include "core/animation/animatable/AnimatableDoubleAndBool.h" 37 #include "core/animation/animatable/AnimatableDoubleAndBool.h"
38 #include "core/animation/animatable/AnimatableFilterOperations.h" 38 #include "core/animation/animatable/AnimatableFilterOperations.h"
39 #include "core/animation/animatable/AnimatableImage.h" 39 #include "core/animation/animatable/AnimatableImage.h"
40 #include "core/animation/animatable/AnimatableLength.h" 40 #include "core/animation/animatable/AnimatableLength.h"
41 #include "core/animation/animatable/AnimatableLengthBox.h" 41 #include "core/animation/animatable/AnimatableLengthBox.h"
42 #include "core/animation/animatable/AnimatableLengthBoxAndBool.h" 42 #include "core/animation/animatable/AnimatableLengthBoxAndBool.h"
43 #include "core/animation/animatable/AnimatableLengthPoint.h" 43 #include "core/animation/animatable/AnimatableLengthPoint.h"
44 #include "core/animation/animatable/AnimatableLengthPoint3D.h" 44 #include "core/animation/animatable/AnimatableLengthPoint3D.h"
45 #include "core/animation/animatable/AnimatableLengthSize.h" 45 #include "core/animation/animatable/AnimatableLengthSize.h"
46 #include "core/animation/animatable/AnimatablePath.h"
46 #include "core/animation/animatable/AnimatableRepeatable.h" 47 #include "core/animation/animatable/AnimatableRepeatable.h"
47 #include "core/animation/animatable/AnimatableSVGPaint.h" 48 #include "core/animation/animatable/AnimatableSVGPaint.h"
48 #include "core/animation/animatable/AnimatableShadow.h" 49 #include "core/animation/animatable/AnimatableShadow.h"
49 #include "core/animation/animatable/AnimatableShapeValue.h" 50 #include "core/animation/animatable/AnimatableShapeValue.h"
50 #include "core/animation/animatable/AnimatableStrokeDasharrayList.h" 51 #include "core/animation/animatable/AnimatableStrokeDasharrayList.h"
51 #include "core/animation/animatable/AnimatableTransform.h" 52 #include "core/animation/animatable/AnimatableTransform.h"
52 #include "core/animation/animatable/AnimatableUnknown.h" 53 #include "core/animation/animatable/AnimatableUnknown.h"
53 #include "core/animation/animatable/AnimatableValue.h" 54 #include "core/animation/animatable/AnimatableValue.h"
54 #include "core/animation/animatable/AnimatableVisibility.h" 55 #include "core/animation/animatable/AnimatableVisibility.h"
55 #include "core/css/CSSPrimitiveValue.h" 56 #include "core/css/CSSPrimitiveValue.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 return; 675 return;
675 case CSSPropertyVerticalAlign: 676 case CSSPropertyVerticalAlign:
676 style->setVerticalAlignLength(animatableValueToLength(value, state)); 677 style->setVerticalAlignLength(animatableValueToLength(value, state));
677 return; 678 return;
678 case CSSPropertyVisibility: 679 case CSSPropertyVisibility:
679 style->setVisibility(toAnimatableVisibility(value)->visibility()); 680 style->setVisibility(toAnimatableVisibility(value)->visibility());
680 return; 681 return;
681 case CSSPropertyZIndex: 682 case CSSPropertyZIndex:
682 style->setZIndex(clampTo<int>(round(toAnimatableDouble(value)->toDouble( )))); 683 style->setZIndex(clampTo<int>(round(toAnimatableDouble(value)->toDouble( ))));
683 return; 684 return;
685 case CSSPropertyD:
686 style->setD(toAnimatablePath(value)->pathValue());
687 return;
684 case CSSPropertyCx: 688 case CSSPropertyCx:
685 style->setCx(animatableValueToLength(value, state)); 689 style->setCx(animatableValueToLength(value, state));
686 return; 690 return;
687 case CSSPropertyCy: 691 case CSSPropertyCy:
688 style->setCy(animatableValueToLength(value, state)); 692 style->setCy(animatableValueToLength(value, state));
689 return; 693 return;
690 case CSSPropertyX: 694 case CSSPropertyX:
691 style->setX(animatableValueToLength(value, state)); 695 style->setX(animatableValueToLength(value, state));
692 return; 696 return;
693 case CSSPropertyY: 697 case CSSPropertyY:
694 style->setY(animatableValueToLength(value, state)); 698 style->setY(animatableValueToLength(value, state));
695 return; 699 return;
696 case CSSPropertyR: 700 case CSSPropertyR:
697 style->setR(animatableValueToLength(value, state, ValueRangeNonNegative) ); 701 style->setR(animatableValueToLength(value, state, ValueRangeNonNegative) );
698 return; 702 return;
699 case CSSPropertyRx: 703 case CSSPropertyRx:
700 style->setRx(animatableValueToLength(value, state, ValueRangeNonNegative )); 704 style->setRx(animatableValueToLength(value, state, ValueRangeNonNegative ));
701 return; 705 return;
702 case CSSPropertyRy: 706 case CSSPropertyRy:
703 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative )); 707 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative ));
704 return; 708 return;
705 709
706 default: 710 default:
707 ASSERT_NOT_REACHED(); 711 ASSERT_NOT_REACHED();
708 } 712 }
709 } 713 }
710 714
711 } // namespace blink 715 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698