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