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

Side by Side Diff: Source/platform/animation/AnimationValue.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 m_value = *value; 85 m_value = *value;
86 } 86 }
87 virtual PassOwnPtr<AnimationValue> clone() const override { return adoptPtr( new TransformAnimationValue(*this)); } 87 virtual PassOwnPtr<AnimationValue> clone() const override { return adoptPtr( new TransformAnimationValue(*this)); }
88 88
89 const TransformOperations* value() const { return &m_value; } 89 const TransformOperations* value() const { return &m_value; }
90 90
91 private: 91 private:
92 TransformOperations m_value; 92 TransformOperations m_value;
93 }; 93 };
94 94
95 // Used to store one filter value in a keyframe list.
96 class FilterAnimationValue final : public AnimationValue {
97 public:
98 explicit FilterAnimationValue(double keyTime, const FilterOperations* value = 0, PassRefPtr<TimingFunction> timingFunction = nullptr)
99 : AnimationValue(keyTime, timingFunction)
100 {
101 if (value)
102 m_value = *value;
103 }
104 virtual PassOwnPtr<AnimationValue> clone() const override { return adoptPtr( new FilterAnimationValue(*this)); }
105
106 const FilterOperations* value() const { return &m_value; }
107
108 private:
109 FilterOperations m_value;
110 };
111
112 } // namespace blink 95 } // namespace blink
113 96
114 #endif // AnimationValue_h 97 #endif // AnimationValue_h
OLDNEW
« no previous file with comments | « Source/core/svg/properties/SVGPropertyTearOff.h ('k') | Source/platform/graphics/filters/FEBlend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698