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

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

Issue 15797004: Cleanup WebKit prefixed names for classes in css directory. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool isImageSetValue() const { return m_classType == ImageSetClass; } 76 bool isImageSetValue() const { return m_classType == ImageSetClass; }
77 bool isImageValue() const { return m_classType == ImageClass; } 77 bool isImageValue() const { return m_classType == ImageClass; }
78 bool isImplicitInitialValue() const; 78 bool isImplicitInitialValue() const;
79 bool isInheritedValue() const { return m_classType == InheritedClass; } 79 bool isInheritedValue() const { return m_classType == InheritedClass; }
80 bool isInitialValue() const { return m_classType == InitialClass; } 80 bool isInitialValue() const { return m_classType == InitialClass; }
81 bool isReflectValue() const { return m_classType == ReflectClass; } 81 bool isReflectValue() const { return m_classType == ReflectClass; }
82 bool isShadowValue() const { return m_classType == ShadowClass; } 82 bool isShadowValue() const { return m_classType == ShadowClass; }
83 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; } 83 bool isCubicBezierTimingFunctionValue() const { return m_classType == CubicB ezierTimingFunctionClass; }
84 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; } 84 bool isLinearTimingFunctionValue() const { return m_classType == LinearTimin gFunctionClass; }
85 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; } 85 bool isStepsTimingFunctionValue() const { return m_classType == StepsTimingF unctionClass; }
86 bool isWebKitCSSTransformValue() const { return m_classType == WebKitCSSTran sformClass; } 86 bool isCSSTransformValue() const { return m_classType == CSSTransformClass; }
87 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; } 87 bool isCSSLineBoxContainValue() const { return m_classType == LineBoxContain Class; }
88 bool isCalculationValue() const {return m_classType == CalculationClass; } 88 bool isCalculationValue() const {return m_classType == CalculationClass; }
89 bool isWebKitCSSFilterValue() const { return m_classType == WebKitCSSFilterC lass; } 89 bool isWebKitCSSFilterValue() const { return m_classType == WebKitCSSFilterC lass; }
90 bool isWebKitCSSArrayFunctionValue() const { return m_classType == WebKitCSS ArrayFunctionValueClass; } 90 bool isWebKitCSSArrayFunctionValue() const { return m_classType == WebKitCSS ArrayFunctionValueClass; }
91 bool isWebKitCSSMixFunctionValue() const { return m_classType == WebKitCSSMi xFunctionValueClass; } 91 bool isCSSMixFunctionValue() const { return m_classType == CSSMixFunctionVal ueClass; }
92 bool isWebKitCSSShaderValue() const { return m_classType == WebKitCSSShaderC lass; } 92 bool isCSSShaderValue() const { return m_classType == CSSShaderClass; }
93 bool isVariableValue() const { return m_classType == VariableClass; } 93 bool isVariableValue() const { return m_classType == VariableClass; }
94 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; } 94 bool isSVGColor() const { return m_classType == SVGColorClass || m_classType == SVGPaintClass; }
95 bool isSVGPaint() const { return m_classType == SVGPaintClass; } 95 bool isSVGPaint() const { return m_classType == SVGPaintClass; }
96 bool isWebKitCSSSVGDocumentValue() const { return m_classType == WebKitCSSSV GDocumentClass; } 96 bool isCSSSVGDocumentValue() const { return m_classType == CSSSVGDocumentCla ss; }
97 97
98 bool isCSSOMSafe() const { return m_isCSSOMSafe; } 98 bool isCSSOMSafe() const { return m_isCSSOMSafe; }
99 bool isSubtypeExposedToCSSOM() const 99 bool isSubtypeExposedToCSSOM() const
100 { 100 {
101 return isPrimitiveValue() || isSVGColor() || isValueList(); 101 return isPrimitiveValue() || isSVGColor() || isValueList();
102 } 102 }
103 103
104 PassRefPtr<CSSValue> cloneForCSSOM() const; 104 PassRefPtr<CSSValue> cloneForCSSOM() const;
105 105
106 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*) const; 106 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*) const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 FunctionClass, 141 FunctionClass,
142 142
143 InheritedClass, 143 InheritedClass,
144 InitialClass, 144 InitialClass,
145 145
146 ReflectClass, 146 ReflectClass,
147 ShadowClass, 147 ShadowClass,
148 UnicodeRangeClass, 148 UnicodeRangeClass,
149 LineBoxContainClass, 149 LineBoxContainClass,
150 CalculationClass, 150 CalculationClass,
151 WebKitCSSShaderClass, 151 CSSShaderClass,
152 VariableClass, 152 VariableClass,
153 153
154 // SVG classes. 154 // SVG classes.
155 SVGColorClass, 155 SVGColorClass,
156 SVGPaintClass, 156 SVGPaintClass,
157 WebKitCSSSVGDocumentClass, 157 CSSSVGDocumentClass,
158 158
159 // List class types must appear after ValueListClass. 159 // List class types must appear after ValueListClass.
160 ValueListClass, 160 ValueListClass,
161 ImageSetClass, 161 ImageSetClass,
162 WebKitCSSFilterClass, 162 WebKitCSSFilterClass,
163 WebKitCSSArrayFunctionValueClass, 163 WebKitCSSArrayFunctionValueClass,
164 WebKitCSSMixFunctionValueClass, 164 CSSMixFunctionValueClass,
165 WebKitCSSTransformClass, 165 CSSTransformClass,
166 // Do not append non-list class types here. 166 // Do not append non-list class types here.
167 }; 167 };
168 168
169 static const size_t ValueListSeparatorBits = 2; 169 static const size_t ValueListSeparatorBits = 2;
170 enum ValueListSeparator { 170 enum ValueListSeparator {
171 SpaceSeparator, 171 SpaceSeparator,
172 CommaSeparator, 172 CommaSeparator,
173 SlashSeparator 173 SlashSeparator
174 }; 174 };
175 175
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 template<typename CSSValueType> 231 template<typename CSSValueType>
232 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second) 232 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C SSValueType>& second)
233 { 233 {
234 return first ? second && first->equals(*second) : !second; 234 return first ? second && first->equals(*second) : !second;
235 } 235 }
236 236
237 } // namespace WebCore 237 } // namespace WebCore
238 238
239 #endif // CSSValue_h 239 #endif // CSSValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698