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

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

Issue 1778743003: Make <custom-ident> not insert quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix FontFace.cpp Created 4 years, 9 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli pseClass; } 72 bool isBasicShapeEllipseValue() const { return m_classType == BasicShapeElli pseClass; }
73 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly gonClass; } 73 bool isBasicShapePolygonValue() const { return m_classType == BasicShapePoly gonClass; }
74 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC lass; } 74 bool isBasicShapeInsetValue() const { return m_classType == BasicShapeInsetC lass; }
75 75
76 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic eClass; } 76 bool isBorderImageSliceValue() const { return m_classType == BorderImageSlic eClass; }
77 bool isColorValue() const { return m_classType == ColorClass; } 77 bool isColorValue() const { return m_classType == ColorClass; }
78 bool isCounterValue() const { return m_classType == CounterClass; } 78 bool isCounterValue() const { return m_classType == CounterClass; }
79 bool isCursorImageValue() const { return m_classType == CursorImageClass; } 79 bool isCursorImageValue() const { return m_classType == CursorImageClass; }
80 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; } 80 bool isCrossfadeValue() const { return m_classType == CrossfadeClass; }
81 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } 81 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; }
82 bool isFontFamilyValue() const { return m_classType == FontFamilyClass; }
82 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; } 83 bool isFontFaceSrcValue() const { return m_classType == FontFaceSrcClass; }
83 bool isFunctionValue() const { return m_classType == FunctionClass; } 84 bool isFunctionValue() const { return m_classType == FunctionClass; }
84 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; } 85 bool isCustomIdentValue() const { return m_classType == CustomIdentClass; }
85 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; } 86 bool isImageGeneratorValue() const { return m_classType >= CrossfadeClass && m_classType <= RadialGradientClass; }
86 bool isGradientValue() const { return m_classType >= LinearGradientClass && m_classType <= RadialGradientClass; } 87 bool isGradientValue() const { return m_classType >= LinearGradientClass && m_classType <= RadialGradientClass; }
87 bool isImageSetValue() const { return m_classType == ImageSetClass; } 88 bool isImageSetValue() const { return m_classType == ImageSetClass; }
88 bool isImageValue() const { return m_classType == ImageClass; } 89 bool isImageValue() const { return m_classType == ImageClass; }
89 bool isImplicitInitialValue() const; 90 bool isImplicitInitialValue() const;
90 bool isInheritedValue() const { return m_classType == InheritedClass; } 91 bool isInheritedValue() const { return m_classType == InheritedClass; }
91 bool isInitialValue() const { return m_classType == InitialClass; } 92 bool isInitialValue() const { return m_classType == InitialClass; }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 RadialGradientClass, 153 RadialGradientClass,
153 154
154 // Timing function classes. 155 // Timing function classes.
155 CubicBezierTimingFunctionClass, 156 CubicBezierTimingFunctionClass,
156 StepsTimingFunctionClass, 157 StepsTimingFunctionClass,
157 158
158 // Other class types. 159 // Other class types.
159 BorderImageSliceClass, 160 BorderImageSliceClass,
160 FontFeatureClass, 161 FontFeatureClass,
161 FontFaceSrcClass, 162 FontFaceSrcClass,
163 FontFamilyClass,
162 164
163 InheritedClass, 165 InheritedClass,
164 InitialClass, 166 InitialClass,
165 UnsetClass, 167 UnsetClass,
166 168
167 ReflectClass, 169 ReflectClass,
168 ShadowClass, 170 ShadowClass,
169 UnicodeRangeClass, 171 UnicodeRangeClass,
170 GridTemplateAreasClass, 172 GridTemplateAreasClass,
171 PathClass, 173 PathClass,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return false; 270 return false;
269 return first->equals(*second); 271 return first->equals(*second);
270 } 272 }
271 273
272 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 274 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
273 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 275 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
274 276
275 } // namespace blink 277 } // namespace blink
276 278
277 #endif // CSSValue_h 279 #endif // CSSValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698