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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h

Issue 1645913002: Add additive animation support for CSS property motion-rotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyInterpolationTypesMapping
Patch Set: Rebased Created 4 years, 10 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu e&); 103 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu e&);
104 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const CSSValue&); 104 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const CSSValue&);
105 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu e&); 105 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu e&);
106 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, const CSSValue&); 106 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, const CSSValue&);
107 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, const CSSValue&); 107 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, const CSSValue&);
108 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, const CSSValue&); 108 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, const CSSValue&);
109 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat e&, const CSSValue&); 109 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat e&, const CSSValue&);
110 static PassRefPtr<StylePath> convertPath(StyleResolverState&, const CSSValue &); 110 static PassRefPtr<StylePath> convertPath(StyleResolverState&, const CSSValue &);
111 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS SValue&); 111 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS SValue&);
112 static StyleMotionRotation convertMotionRotation(const CSSValue&);
112 }; 113 };
113 114
114 template <typename T> 115 template <typename T>
115 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const CSSValue& value) 116 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const CSSValue& value)
116 { 117 {
117 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi onData()); 118 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi onData());
118 } 119 }
119 120
120 template <typename T> 121 template <typename T>
121 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue& value) 122 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue& value)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 160 {
160 if (value.isStringValue()) 161 if (value.isStringValue())
161 return AtomicString(toCSSStringValue(value).value()); 162 return AtomicString(toCSSStringValue(value).value());
162 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); 163 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone);
163 return nullAtom; 164 return nullAtom;
164 } 165 }
165 166
166 } // namespace blink 167 } // namespace blink
167 168
168 #endif 169 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698