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

Side by Side Diff: third_party/WebKit/Source/core/animation/StringKeyframe.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/StringKeyframe.h" 5 #include "core/animation/StringKeyframe.h"
6 6
7 #include "core/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/animation/ConstantStyleInterpolation.h" 8 #include "core/animation/ConstantStyleInterpolation.h"
9 #include "core/animation/DeferredLegacyStyleInterpolation.h" 9 #include "core/animation/DeferredLegacyStyleInterpolation.h"
10 #include "core/animation/InvalidatableInterpolation.h" 10 #include "core/animation/InvalidatableInterpolation.h"
(...skipping 16 matching lines...) Expand all
27 { 27 {
28 } 28 }
29 29
30 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v alue, Element* element, StyleSheetContents* styleSheetContents) 30 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v alue, Element* element, StyleSheetContents* styleSheetContents)
31 { 31 {
32 ASSERT(property != CSSPropertyInvalid); 32 ASSERT(property != CSSPropertyInvalid);
33 if (CSSAnimations::isAnimatableProperty(property)) 33 if (CSSAnimations::isAnimatableProperty(property))
34 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents ); 34 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents );
35 } 35 }
36 36
37 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, PassRefPtrWillB eRawPtr<CSSValue> value) 37 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, RawPtr<CSSValue > value)
38 { 38 {
39 ASSERT(property != CSSPropertyInvalid); 39 ASSERT(property != CSSPropertyInvalid);
40 ASSERT(CSSAnimations::isAnimatableProperty(property)); 40 ASSERT(CSSAnimations::isAnimatableProperty(property));
41 m_cssPropertyMap->setProperty(property, value, false); 41 m_cssPropertyMap->setProperty(property, value, false);
42 } 42 }
43 43
44 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const String& value, Element* element, StyleSheetContents* styleSheetContents) 44 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const String& value, Element* element, StyleSheetContents* styleSheetContents)
45 { 45 {
46 ASSERT(property != CSSPropertyInvalid); 46 ASSERT(property != CSSPropertyInvalid);
47 if (CSSAnimations::isAnimatableProperty(property)) 47 if (CSSAnimations::isAnimatableProperty(property))
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation( PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element* , const ComputedStyle*) const 165 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation( PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element* , const ComputedStyle*) const
166 { 166 {
167 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin g::get(propertyHandle); 167 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin g::get(propertyHandle);
168 ASSERT(applicableTypes); 168 ASSERT(applicableTypes);
169 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes, const_cast<SVGPropertySpecificKeyframe*>(this), &end); 169 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes, const_cast<SVGPropertySpecificKeyframe*>(this), &end);
170 } 170 }
171 171
172 } // namespace blink 172 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698