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

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: Rebaselined and updated after Ojan's and Elliott's comments Created 7 years, 4 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
« no previous file with comments | « Source/core/css/CSSPropertyNames.in ('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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 InheritedClass, 144 InheritedClass,
144 InitialClass, 145 InitialClass,
145 146
146 ReflectClass, 147 ReflectClass,
147 ShadowClass, 148 ShadowClass,
148 UnicodeRangeClass, 149 UnicodeRangeClass,
149 LineBoxContainClass, 150 LineBoxContainClass,
150 CalculationClass, 151 CalculationClass,
151 CSSShaderClass, 152 CSSShaderClass,
152 VariableClass, 153 VariableClass,
154 GridTemplateClass,
153 155
154 // SVG classes. 156 // SVG classes.
155 SVGColorClass, 157 SVGColorClass,
156 SVGPaintClass, 158 SVGPaintClass,
157 CSSSVGDocumentClass, 159 CSSSVGDocumentClass,
158 160
159 // List class types must appear after ValueListClass. 161 // List class types must appear after ValueListClass.
160 ValueListClass, 162 ValueListClass,
161 ImageSetClass, 163 ImageSetClass,
162 CSSFilterClass, 164 CSSFilterClass,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 232
231 template<typename CSSValueType> 233 template<typename CSSValueType>
232 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second) 234 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second)
233 { 235 {
234 return first ? second && first->equals(*second) : !second; 236 return first ? second && first->equals(*second) : !second;
235 } 237 }
236 238
237 } // namespace WebCore 239 } // namespace WebCore
238 240
239 #endif // CSSValue_h 241 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSPropertyNames.in ('k') | Source/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698