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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h

Issue 2622403006: Compute initial values for registered custom properties. (Closed)
Patch Set: initialise CSSToLengthConversionData nicer Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 static RespectImageOrientationEnum convertImageOrientation( 187 static RespectImageOrientationEnum convertImageOrientation(
188 StyleResolverState&, 188 StyleResolverState&,
189 const CSSValue&); 189 const CSSValue&);
190 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, 190 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&,
191 const CSSValue&); 191 const CSSValue&);
192 static StyleOffsetRotation convertOffsetRotate(const CSSValue&); 192 static StyleOffsetRotation convertOffsetRotate(const CSSValue&);
193 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100> 193 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100>
194 static Length convertPositionLength(StyleResolverState&, const CSSValue&); 194 static Length convertPositionLength(StyleResolverState&, const CSSValue&);
195 static Rotation convertRotation(const CSSValue&); 195 static Rotation convertRotation(const CSSValue&);
196 196
197 static const CSSValue& convertRegisteredPropertyInitialValue(const CSSValue&);
197 static const CSSValue& convertRegisteredPropertyValue( 198 static const CSSValue& convertRegisteredPropertyValue(
198 const StyleResolverState&, 199 const StyleResolverState&,
199 const CSSValue&); 200 const CSSValue&);
200 }; 201 };
201 202
202 template <typename T> 203 template <typename T>
203 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, 204 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state,
204 const CSSValue& value) { 205 const CSSValue& value) {
205 return toCSSPrimitiveValue(value).computeLength<T>( 206 return toCSSPrimitiveValue(value).computeLength<T>(
206 state.cssToLengthConversionData()); 207 state.cssToLengthConversionData());
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const CSSValue& value) { 282 const CSSValue& value) {
282 if (value.isStringValue()) 283 if (value.isStringValue())
283 return AtomicString(toCSSStringValue(value).value()); 284 return AtomicString(toCSSStringValue(value).value());
284 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), IdForNone); 285 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), IdForNone);
285 return nullAtom; 286 return nullAtom;
286 } 287 }
287 288
288 } // namespace blink 289 } // namespace blink
289 290
290 #endif 291 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698