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

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

Issue 2558053002: Add CSS support for font-variation-settings (Closed)
Patch Set: DCHECK corrected, newline removed. Created 4 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return m_classType == BorderImageSliceClass; 78 return m_classType == BorderImageSliceClass;
79 } 79 }
80 bool isColorValue() const { return m_classType == ColorClass; } 80 bool isColorValue() const { return m_classType == ColorClass; }
81 bool isCounterValue() const { return m_classType == CounterClass; } 81 bool isCounterValue() const { return m_classType == CounterClass; }
82 bool isCursorImageValue() const { return m_classType == CursorImageClass; } 82 bool isCursorImageValue() const { return m_classType == CursorImageClass; }
83 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } 83 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; }
84 bool isPaintValue() const { return m_classType == PaintClass; } 84 bool isPaintValue() const { return m_classType == PaintClass; }
85 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } 85 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; }
86 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; } 86 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; }
87 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } 87 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; }
88 bool isFontVariationValue() const {
89 return m_classType == FontVariationClass;
90 }
88 bool isFunctionValue() const { return m_classType == FunctionClass; } 91 bool isFunctionValue() const { return m_classType == FunctionClass; }
89 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } 92 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; }
90 bool isImageGeneratorValue() const { 93 bool isImageGeneratorValue() const {
91 return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; 94 return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass;
92 } 95 }
93 bool isGradientValue() const { 96 bool isGradientValue() const {
94 return m_classType >= LinearGradientClass && 97 return m_classType >= LinearGradientClass &&
95 m_classType <= RadialGradientClass; 98 m_classType <= RadialGradientClass;
96 } 99 }
97 bool isImageSetValue() const { return m_classType == ImageSetClass; } 100 bool isImageSetValue() const { return m_classType == ImageSetClass; }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 193
191 // Timing function classes. 194 // Timing function classes.
192 CubicBezierTimingFunctionClass, 195 CubicBezierTimingFunctionClass,
193 StepsTimingFunctionClass, 196 StepsTimingFunctionClass,
194 197
195 // Other class types. 198 // Other class types.
196 BorderImageSliceClass, 199 BorderImageSliceClass,
197 FontFeatureClass, 200 FontFeatureClass,
198 FontFaceSrcClass, 201 FontFaceSrcClass,
199 FontFamilyClass, 202 FontFamilyClass,
203 FontVariationClass,
200 204
201 InheritedClass, 205 InheritedClass,
202 InitialClass, 206 InitialClass,
203 UnsetClass, 207 UnsetClass,
204 208
205 ReflectClass, 209 ReflectClass,
206 ShadowClass, 210 ShadowClass,
207 UnicodeRangeClass, 211 UnicodeRangeClass,
208 GridTemplateAreasClass, 212 GridTemplateAreasClass,
209 PathClass, 213 PathClass,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return first->equals(*second); 303 return first->equals(*second);
300 } 304 }
301 305
302 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 306 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
303 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \ 307 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, \
304 value.predicate) 308 value.predicate)
305 309
306 } // namespace blink 310 } // namespace blink
307 311
308 #endif // CSSValue_h 312 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | third_party/WebKit/Source/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698