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

Side by Side Diff: sky/engine/core/css/CSSValue.h

Issue 689853003: Remove CSS Grid Layout and grid media queries. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool isLinearGradientValue() const { return m_classType == LinearGradientCla ss; } 94 bool isLinearGradientValue() const { return m_classType == LinearGradientCla ss; }
95 bool isRadialGradientValue() const { return m_classType == RadialGradientCla ss; } 95 bool isRadialGradientValue() const { return m_classType == RadialGradientCla ss; }
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 isGridTemplateAreasValue() const { return m_classType == GridTemplateAr easClass; }
105 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; } 104 bool isUnicodeRangeValue() const { return m_classType == UnicodeRangeClass; }
106 bool isGridLineNamesValue() const { return m_classType == GridLineNamesClass ; }
107 105
108 bool isCSSOMSafe() const { return m_isCSSOMSafe; } 106 bool isCSSOMSafe() const { return m_isCSSOMSafe; }
109 bool isSubtypeExposedToCSSOM() const 107 bool isSubtypeExposedToCSSOM() const
110 { 108 {
111 return isPrimitiveValue() || isValueList(); 109 return isPrimitiveValue() || isValueList();
112 } 110 }
113 111
114 PassRefPtr<CSSValue> cloneForCSSOM() const; 112 PassRefPtr<CSSValue> cloneForCSSOM() const;
115 113
116 bool hasFailedOrCanceledSubresources() const; 114 bool hasFailedOrCanceledSubresources() const;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 FontFaceSrcClass, 147 FontFaceSrcClass,
150 FunctionClass, 148 FunctionClass,
151 149
152 InheritedClass, 150 InheritedClass,
153 InitialClass, 151 InitialClass,
154 152
155 ShadowClass, 153 ShadowClass,
156 UnicodeRangeClass, 154 UnicodeRangeClass,
157 LineBoxContainClass, 155 LineBoxContainClass,
158 CalculationClass, 156 CalculationClass,
159 GridTemplateAreasClass,
160 157
161 // List class types must appear after ValueListClass. 158 // List class types must appear after ValueListClass.
162 ValueListClass, 159 ValueListClass,
163 ImageSetClass, 160 ImageSetClass,
164 CSSFilterClass, 161 CSSFilterClass,
165 CSSTransformClass, 162 CSSTransformClass,
166 GridLineNamesClass,
167 // Do not append non-list class types here. 163 // Do not append non-list class types here.
168 }; 164 };
169 165
170 static const size_t ValueListSeparatorBits = 2; 166 static const size_t ValueListSeparatorBits = 2;
171 enum ValueListSeparator { 167 enum ValueListSeparator {
172 SpaceSeparator, 168 SpaceSeparator,
173 CommaSeparator, 169 CommaSeparator,
174 SlashSeparator 170 SlashSeparator
175 }; 171 };
176 172
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 { 236 {
241 return first ? second && first->equals(*second) : !second; 237 return first ? second && first->equals(*second) : !second;
242 } 238 }
243 239
244 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ 240 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \
245 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te) 241 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica te)
246 242
247 } // namespace blink 243 } // namespace blink
248 244
249 #endif // CSSValue_h 245 #endif // CSSValue_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698