| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); | 114 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); |
| 115 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu
e&); | 115 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu
e&); |
| 116 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve
rState&, const CSSValue&); | 116 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve
rState&, const CSSValue&); |
| 117 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState
&, const CSSValue&); | 117 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState
&, const CSSValue&); |
| 118 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&,
const CSSValue&); | 118 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&,
const CSSValue&); |
| 119 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat
e&, const CSSValue&); | 119 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat
e&, const CSSValue&); |
| 120 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS
SValue&); | 120 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS
SValue&); |
| 121 static StyleMotionRotation convertMotionRotation(const CSSValue&); | 121 static StyleMotionRotation convertMotionRotation(const CSSValue&); |
| 122 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100> static Length
convertPositionLength(StyleResolverState&, const CSSValue&); | 122 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100> static Length
convertPositionLength(StyleResolverState&, const CSSValue&); |
| 123 static Rotation convertRotation(const CSSValue&); | 123 static Rotation convertRotation(const CSSValue&); |
| 124 |
| 125 static const CSSValue& convertRegisteredPropertyValue(const StyleResolverSta
te&, const CSSValue&); |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 template <typename T> | 128 template <typename T> |
| 127 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const
CSSValue& value) | 129 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const
CSSValue& value) |
| 128 { | 130 { |
| 129 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi
onData()); | 131 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi
onData()); |
| 130 } | 132 } |
| 131 | 133 |
| 132 template <typename T> | 134 template <typename T> |
| 133 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue&
value) | 135 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue&
value) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 { | 173 { |
| 172 if (value.isStringValue()) | 174 if (value.isStringValue()) |
| 173 return AtomicString(toCSSStringValue(value).value()); | 175 return AtomicString(toCSSStringValue(value).value()); |
| 174 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); | 176 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); |
| 175 return nullAtom; | 177 return nullAtom; |
| 176 } | 178 } |
| 177 | 179 |
| 178 } // namespace blink | 180 } // namespace blink |
| 179 | 181 |
| 180 #endif | 182 #endif |
| OLD | NEW |