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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap&
, NamedGridLinesMap&, GridTrackSizingDirection); | 97 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap&
, NamedGridLinesMap&, GridTrackSizingDirection); |
98 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered
NamedGridLines&, NamedGridLinesMap&); | 98 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered
NamedGridLines&, NamedGridLinesMap&); |
99 | 99 |
100 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu
e&); | 100 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu
e&); |
101 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); | 101 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); |
102 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu
e&); | 102 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu
e&); |
103 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve
rState&, const CSSValue&); | 103 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve
rState&, const CSSValue&); |
104 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState
&, const CSSValue&); | 104 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState
&, const CSSValue&); |
105 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&,
const CSSValue&); | 105 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&,
const CSSValue&); |
106 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat
e&, const CSSValue&); | 106 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat
e&, const CSSValue&); |
| 107 static CSSPathValue* convertPath(StyleResolverState&, CSSValue&); |
107 }; | 108 }; |
108 | 109 |
109 template <typename T> | 110 template <typename T> |
110 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const
CSSValue& value) | 111 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const
CSSValue& value) |
111 { | 112 { |
112 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi
onData()); | 113 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi
onData()); |
113 } | 114 } |
114 | 115 |
115 template <typename T> | 116 template <typename T> |
116 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue&
value) | 117 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue&
value) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 { | 155 { |
155 if (value.isStringValue()) | 156 if (value.isStringValue()) |
156 return AtomicString(toCSSStringValue(value).value()); | 157 return AtomicString(toCSSStringValue(value).value()); |
157 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); | 158 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); |
158 return nullAtom; | 159 return nullAtom; |
159 } | 160 } |
160 | 161 |
161 } // namespace blink | 162 } // namespace blink |
162 | 163 |
163 #endif | 164 #endif |
OLD | NEW |