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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Post-merge Created 5 years, 3 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 | Annotate | Revision Log
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool isRadialGradientValue() const { return m_classType == RadialGradientCla ss; } 87 bool isRadialGradientValue() const { return m_classType == RadialGradientCla ss; }
88 bool isReflectValue() const { return m_classType == ReflectClass; } 88 bool isReflectValue() const { return m_classType == ReflectClass; }
89 bool isShadowValue() const { return m_classType == ShadowClass; } 89 bool isShadowValue() const { return m_classType == ShadowClass; }
90 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } 90 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; }
91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } 91 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; }
92 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; } 92 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; }
93 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; } 93 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; }
94 bool isContentDistributionValue() const { return m_classType == CSSContentDi stributionClass; } 94 bool isContentDistributionValue() const { return m_classType == CSSContentDi stributionClass; }
95 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; } 95 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; }
96 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; } 96 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; }
97 bool isVariableValue() const { return m_classType == VariableClass; }
97 98
98 bool hasFailedOrCanceledSubresources() const; 99 bool hasFailedOrCanceledSubresources() const;
99 100
100 bool equals(const CSSValue&) const; 101 bool equals(const CSSValue&) const;
101 102
102 void finalizeGarbageCollectedObject(); 103 void finalizeGarbageCollectedObject();
103 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } 104 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { }
104 DECLARE_TRACE(); 105 DECLARE_TRACE();
105 106
106 // ~CSSValue should be public, because non-public ~CSSValue causes C2248 107 // ~CSSValue should be public, because non-public ~CSSValue causes C2248
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 InheritedClass, 141 InheritedClass,
141 InitialClass, 142 InitialClass,
142 UnsetClass, 143 UnsetClass,
143 144
144 ReflectClass, 145 ReflectClass,
145 ShadowClass, 146 ShadowClass,
146 UnicodeRangeClass, 147 UnicodeRangeClass,
147 GridTemplateAreasClass, 148 GridTemplateAreasClass,
148 PathClass, 149 PathClass,
150 VariableClass,
149 151
150 // SVG classes. 152 // SVG classes.
151 CSSSVGDocumentClass, 153 CSSSVGDocumentClass,
152 154
153 CSSContentDistributionClass, 155 CSSContentDistributionClass,
154 156
155 // List class types must appear after ValueListClass. 157 // List class types must appear after ValueListClass.
156 ValueListClass, 158 ValueListClass,
157 FunctionClass, 159 FunctionClass,
158 ImageSetClass, 160 ImageSetClass,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return false; 245 return false;
244 return first->equals(*second); 246 return first->equals(*second);
245 } 247 }
246 248
247 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 249 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
248 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 250 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
249 251
250 } // namespace blink 252 } // namespace blink
251 253
252 #endif // CSSValue_h 254 #endif // CSSValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698