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

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

Issue 18532004: Implement 'grid-template' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same change, forgot to update css-properties-as-js-properties.html result Created 7 years, 5 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; } 86 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; }
87 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } 87 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; }
88 bool isCSSTransformValue() const { return m_classType == CSSTransformClass; } 88 bool isCSSTransformValue() const { return m_classType == CSSTransformClass; }
89 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; } 89 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; }
90 bool isCalculationValue() const {return m_classType == CalculationClass; } 90 bool isCalculationValue() const {return m_classType == CalculationClass; }
91 bool isCSSFilterValue() const { return m_classType == CSSFilterClass; } 91 bool isCSSFilterValue() const { return m_classType == CSSFilterClass; }
92 bool isCSSArrayFunctionValue() const { return m_classType == CSSArrayFunctio nValueClass; } 92 bool isCSSArrayFunctionValue() const { return m_classType == CSSArrayFunctio nValueClass; }
93 bool isCSSMixFunctionValue() const { return m_classType == CSSMixFunctionVal ueClass; } 93 bool isCSSMixFunctionValue() const { return m_classType == CSSMixFunctionVal ueClass; }
94 bool isCSSShaderValue() const { return m_classType == CSSShaderClass; } 94 bool isCSSShaderValue() const { return m_classType == CSSShaderClass; }
95 bool isVariableValue() const { return m_classType == VariableClass; } 95 bool isVariableValue() const { return m_classType == VariableClass; }
96 bool isGridTemplateValue() const { return m_classType == GridTemplateClass; }
96 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; } 97 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; }
97 bool isSVGPaint() const { return m_classType == SVGPaintClass; } 98 bool isSVGPaint() const { return m_classType == SVGPaintClass; }
98 bool isCSSSVGDocumentValue() const { return m_classType == CSSSVGDocumentCla ss; } 99 bool isCSSSVGDocumentValue() const { return m_classType == CSSSVGDocumentCla ss; }
99 100
100 bool isCSSOMSafe() const { return m_isCSSOMSafe; } 101 bool isCSSOMSafe() const { return m_isCSSOMSafe; }
101 bool isSubtypeExposedToCSSOM() const 102 bool isSubtypeExposedToCSSOM() const
102 { 103 {
103 return isPrimitiveValue() || isSVGColor() || isValueList(); 104 return isPrimitiveValue() || isSVGColor() || isValueList();
104 } 105 }
105 106
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 InheritedClass, 146 InheritedClass,
146 InitialClass, 147 InitialClass,
147 148
148 ReflectClass, 149 ReflectClass,
149 ShadowClass, 150 ShadowClass,
150 UnicodeRangeClass, 151 UnicodeRangeClass,
151 LineBoxContainClass, 152 LineBoxContainClass,
152 CalculationClass, 153 CalculationClass,
153 CSSShaderClass, 154 CSSShaderClass,
154 VariableClass, 155 VariableClass,
156 GridTemplateClass,
155 157
156 // SVG classes. 158 // SVG classes.
157 SVGColorClass, 159 SVGColorClass,
158 SVGPaintClass, 160 SVGPaintClass,
159 CSSSVGDocumentClass, 161 CSSSVGDocumentClass,
160 162
161 // List class types must appear after ValueListClass. 163 // List class types must appear after ValueListClass.
162 ValueListClass, 164 ValueListClass,
163 ImageSetClass, 165 ImageSetClass,
164 CSSFilterClass, 166 CSSFilterClass,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 234
233 template<typename CSSValueType> 235 template<typename CSSValueType>
234 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second) 236 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second)
235 { 237 {
236 return first ? second && first->equals(*second) : !second; 238 return first ? second && first->equals(*second) : !second;
237 } 239 }
238 240
239 } // namespace WebCore 241 } // namespace WebCore
240 242
241 #endif // CSSValue_h 243 #endif // CSSValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698