| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |