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

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

Issue 189913012: Merge SVGColor into SVGPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix system color test Created 6 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 isTextCloneCSSValue() const { return m_isTextClone; } 97 bool isTextCloneCSSValue() const { return m_isTextClone; }
98 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } 98 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; }
99 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } 99 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; }
100 bool isTransformValue() const { return m_classType == CSSTransformClass; } 100 bool isTransformValue() const { return m_classType == CSSTransformClass; }
101 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla ss; } 101 bool isLineBoxContainValue() const { return m_classType == LineBoxContainCla ss; }
102 bool isCalcValue() const {return m_classType == CalculationClass; } 102 bool isCalcValue() const {return m_classType == CalculationClass; }
103 bool isFilterValue() const { return m_classType == CSSFilterClass; } 103 bool isFilterValue() const { return m_classType == CSSFilterClass; }
104 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa lueClass; } 104 bool isArrayFunctionValue() const { return m_classType == CSSArrayFunctionVa lueClass; }
105 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; } 105 bool isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; }
106 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; }
107 bool isSVGPaint() const { return m_classType == SVGPaintClass; } 106 bool isSVGPaint() const { return m_classType == SVGPaintClass; }
108 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; } 107 bool isSVGDocumentValue() const { return m_classType == CSSSVGDocumentClass; }
109 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; } 108 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; }
110 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; } 109 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; }
111 110
112 bool isCSSOMSafe() const { return m_isCSSOMSafe; } 111 bool isCSSOMSafe() const { return m_isCSSOMSafe; }
113 bool isSubtypeExposedToCSSOM() const 112 bool isSubtypeExposedToCSSOM() const
114 { 113 {
115 return isPrimitiveValue() || isSVGColor() || isValueList(); 114 return isPrimitiveValue() || isSVGPaint() || isValueList();
116 } 115 }
117 116
118 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const; 117 PassRefPtrWillBeRawPtr<CSSValue> cloneForCSSOM() const;
119 118
120 bool hasFailedOrCanceledSubresources() const; 119 bool hasFailedOrCanceledSubresources() const;
121 120
122 bool equals(const CSSValue&) const; 121 bool equals(const CSSValue&) const;
123 122
124 void finalize(); 123 void finalize();
125 void traceAfterDispatch(Visitor*) { } 124 void traceAfterDispatch(Visitor*) { }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 InitialClass, 156 InitialClass,
158 157
159 ReflectClass, 158 ReflectClass,
160 ShadowClass, 159 ShadowClass,
161 UnicodeRangeClass, 160 UnicodeRangeClass,
162 LineBoxContainClass, 161 LineBoxContainClass,
163 CalculationClass, 162 CalculationClass,
164 GridTemplateAreasClass, 163 GridTemplateAreasClass,
165 164
166 // SVG classes. 165 // SVG classes.
167 SVGColorClass,
168 SVGPaintClass, 166 SVGPaintClass,
169 CSSSVGDocumentClass, 167 CSSSVGDocumentClass,
170 168
171 // List class types must appear after ValueListClass. 169 // List class types must appear after ValueListClass.
172 ValueListClass, 170 ValueListClass,
173 ImageSetClass, 171 ImageSetClass,
174 CSSFilterClass, 172 CSSFilterClass,
175 CSSArrayFunctionValueClass, 173 CSSArrayFunctionValueClass,
176 CSSTransformClass, 174 CSSTransformClass,
177 GridLineNamesClass, 175 GridLineNamesClass,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 { 255 {
258 return first ? second && first->equals(*second) : !second; 256 return first ? second && first->equals(*second) : !second;
259 } 257 }
260 258
261 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 259 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
262 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 260 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
263 261
264 } // namespace WebCore 262 } // namespace WebCore
265 263
266 #endif // CSSValue_h 264 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698