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

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

Issue 1406993009: Revert "CSS Custom Properties (Variables)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool isShadowValue() const { return m_classType == ShadowClass; } 96 bool isShadowValue() const { return m_classType == ShadowClass; }
97 bool isStringValue() const { return m_classType == StringClass; } 97 bool isStringValue() const { return m_classType == StringClass; }
98 bool isURIValue() const { return m_classType == URIClass; } 98 bool isURIValue() const { return m_classType == URIClass; }
99 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } 99 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; }
100 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } 100 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; }
101 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; } 101 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; }
102 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; } 102 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; }
103 bool isContentDistributionValue() const { return m_classType == CSSContentDi stributionClass; } 103 bool isContentDistributionValue() const { return m_classType == CSSContentDi stributionClass; }
104 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; } 104 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; }
105 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; } 105 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; }
106 bool isCustomPropertyDeclaration() const { return m_classType == CustomPrope rtyDeclarationClass; }
107 bool isVariableReferenceValue() const { return m_classType == VariableRefere nceClass; }
108 106
109 bool hasFailedOrCanceledSubresources() const; 107 bool hasFailedOrCanceledSubresources() const;
110 108
111 bool equals(const CSSValue&) const; 109 bool equals(const CSSValue&) const;
112 110
113 void finalizeGarbageCollectedObject(); 111 void finalizeGarbageCollectedObject();
114 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } 112 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { }
115 DECLARE_TRACE(); 113 DECLARE_TRACE();
116 114
117 // ~CSSValue should be public, because non-public ~CSSValue causes C2248 115 // ~CSSValue should be public, because non-public ~CSSValue causes C2248
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 157
160 InheritedClass, 158 InheritedClass,
161 InitialClass, 159 InitialClass,
162 UnsetClass, 160 UnsetClass,
163 161
164 ReflectClass, 162 ReflectClass,
165 ShadowClass, 163 ShadowClass,
166 UnicodeRangeClass, 164 UnicodeRangeClass,
167 GridTemplateAreasClass, 165 GridTemplateAreasClass,
168 PathClass, 166 PathClass,
169 VariableReferenceClass,
170 CustomPropertyDeclarationClass,
171 167
172 // SVG classes. 168 // SVG classes.
173 CSSSVGDocumentClass, 169 CSSSVGDocumentClass,
174 170
175 CSSContentDistributionClass, 171 CSSContentDistributionClass,
176 172
177 // List class types must appear after ValueListClass. 173 // List class types must appear after ValueListClass.
178 ValueListClass, 174 ValueListClass,
179 FunctionClass, 175 FunctionClass,
180 ImageSetClass, 176 ImageSetClass,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 return false; 261 return false;
266 return first->equals(*second); 262 return first->equals(*second);
267 } 263 }
268 264
269 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 265 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
270 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 266 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
271 267
272 } // namespace blink 268 } // namespace blink
273 269
274 #endif // CSSValue_h 270 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperty.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