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

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

Issue 1782833008: Add paint() function as valid CSS <image> type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: name->customCSSText 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl eClass; } 71 bool isBasicShapeCircleValue() const { return m_classType == BasicShapeCircl eClass; }
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 isPaintValue() const { return m_classType == PaintClass; }
81 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; } 82 bool isFontFeatureValue() const { return m_classType == FontFeatureClass; }
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; }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 BasicShapeEllipseClass, 143 BasicShapeEllipseClass,
143 BasicShapePolygonClass, 144 BasicShapePolygonClass,
144 BasicShapeInsetClass, 145 BasicShapeInsetClass,
145 146
146 // Image classes. 147 // Image classes.
147 ImageClass, 148 ImageClass,
148 CursorImageClass, 149 CursorImageClass,
149 150
150 // Image generator classes. 151 // Image generator classes.
151 CrossfadeClass, 152 CrossfadeClass,
153 PaintClass,
152 LinearGradientClass, 154 LinearGradientClass,
153 RadialGradientClass, 155 RadialGradientClass,
154 156
155 // Timing function classes. 157 // Timing function classes.
156 CubicBezierTimingFunctionClass, 158 CubicBezierTimingFunctionClass,
157 StepsTimingFunctionClass, 159 StepsTimingFunctionClass,
158 160
159 // Other class types. 161 // Other class types.
160 BorderImageSliceClass, 162 BorderImageSliceClass,
161 FontFeatureClass, 163 FontFeatureClass,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 return false; 272 return false;
271 return first->equals(*second); 273 return first->equals(*second);
272 } 274 }
273 275
274 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 276 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
275 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 277 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
276 278
277 } // namespace blink 279 } // namespace blink
278 280
279 #endif // CSSValue_h 281 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintValue.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