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

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

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Fix behaviour outside input range [0,1] Created 3 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 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool IsReflectValue() const { return class_type_ == kReflectClass; } 122 bool IsReflectValue() const { return class_type_ == kReflectClass; }
123 bool IsShadowValue() const { return class_type_ == kShadowClass; } 123 bool IsShadowValue() const { return class_type_ == kShadowClass; }
124 bool IsStringValue() const { return class_type_ == kStringClass; } 124 bool IsStringValue() const { return class_type_ == kStringClass; }
125 bool IsURIValue() const { return class_type_ == kURIClass; } 125 bool IsURIValue() const { return class_type_ == kURIClass; }
126 bool IsCubicBezierTimingFunctionValue() const { 126 bool IsCubicBezierTimingFunctionValue() const {
127 return class_type_ == kCubicBezierTimingFunctionClass; 127 return class_type_ == kCubicBezierTimingFunctionClass;
128 } 128 }
129 bool IsStepsTimingFunctionValue() const { 129 bool IsStepsTimingFunctionValue() const {
130 return class_type_ == kStepsTimingFunctionClass; 130 return class_type_ == kStepsTimingFunctionClass;
131 } 131 }
132 bool IsFramesTimingFunctionValue() const {
133 return class_type_ == kFramesTimingFunctionClass;
134 }
132 bool IsGridTemplateAreasValue() const { 135 bool IsGridTemplateAreasValue() const {
133 return class_type_ == kGridTemplateAreasClass; 136 return class_type_ == kGridTemplateAreasClass;
134 } 137 }
135 bool IsContentDistributionValue() const { 138 bool IsContentDistributionValue() const {
136 return class_type_ == kCSSContentDistributionClass; 139 return class_type_ == kCSSContentDistributionClass;
137 } 140 }
138 bool IsUnicodeRangeValue() const { return class_type_ == kUnicodeRangeClass; } 141 bool IsUnicodeRangeValue() const { return class_type_ == kUnicodeRangeClass; }
139 bool IsGridLineNamesValue() const { 142 bool IsGridLineNamesValue() const {
140 return class_type_ == kGridLineNamesClass; 143 return class_type_ == kGridLineNamesClass;
141 } 144 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Image generator classes. 198 // Image generator classes.
196 kCrossfadeClass, 199 kCrossfadeClass,
197 kPaintClass, 200 kPaintClass,
198 kLinearGradientClass, 201 kLinearGradientClass,
199 kRadialGradientClass, 202 kRadialGradientClass,
200 kConicGradientClass, 203 kConicGradientClass,
201 204
202 // Timing function classes. 205 // Timing function classes.
203 kCubicBezierTimingFunctionClass, 206 kCubicBezierTimingFunctionClass,
204 kStepsTimingFunctionClass, 207 kStepsTimingFunctionClass,
208 kFramesTimingFunctionClass,
205 209
206 // Other class types. 210 // Other class types.
207 kBorderImageSliceClass, 211 kBorderImageSliceClass,
208 kFontFeatureClass, 212 kFontFeatureClass,
209 kFontFaceSrcClass, 213 kFontFaceSrcClass,
210 kFontFamilyClass, 214 kFontFamilyClass,
211 kFontVariationClass, 215 kFontVariationClass,
212 216
213 kInheritedClass, 217 kInheritedClass,
214 kInitialClass, 218 kInitialClass,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 return true; 283 return true;
280 } 284 }
281 285
282 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 286 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
283 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ 287 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \
284 value.predicate) 288 value.predicate)
285 289
286 } // namespace blink 290 } // namespace blink
287 291
288 #endif // CSSValue_h 292 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSTimingFunctionValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698