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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 const CSSReflectValue& reflect_value = ToCSSReflectValue(value); | 95 const CSSReflectValue& reflect_value = ToCSSReflectValue(value); |
96 RefPtr<StyleReflection> reflection = StyleReflection::Create(); | 96 RefPtr<StyleReflection> reflection = StyleReflection::Create(); |
97 reflection->SetDirection( | 97 reflection->SetDirection( |
98 reflect_value.Direction()->ConvertTo<CSSReflectionDirection>()); | 98 reflect_value.Direction()->ConvertTo<CSSReflectionDirection>()); |
99 if (reflect_value.Offset()) | 99 if (reflect_value.Offset()) |
100 reflection->SetOffset(reflect_value.Offset()->ConvertToLength( | 100 reflection->SetOffset(reflect_value.Offset()->ConvertToLength( |
101 state.CssToLengthConversionData())); | 101 state.CssToLengthConversionData())); |
102 if (reflect_value.Mask()) { | 102 if (reflect_value.Mask()) { |
103 NinePieceImage mask; | 103 NinePieceImage mask = NinePieceImage::MaskDefaults(); |
104 mask.SetMaskDefaults(); | |
105 CSSToStyleMap::MapNinePieceImage(state, CSSPropertyWebkitBoxReflect, | 104 CSSToStyleMap::MapNinePieceImage(state, CSSPropertyWebkitBoxReflect, |
106 *reflect_value.Mask(), mask); | 105 *reflect_value.Mask(), mask); |
107 reflection->SetMask(mask); | 106 reflection->SetMask(mask); |
108 } | 107 } |
109 | 108 |
110 return reflection.Release(); | 109 return reflection.Release(); |
111 } | 110 } |
112 | 111 |
113 Color StyleBuilderConverter::ConvertColor(StyleResolverState& state, | 112 Color StyleBuilderConverter::ConvertColor(StyleResolverState& state, |
114 const CSSValue& value, | 113 const CSSValue& value, |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 } | 1423 } |
1425 | 1424 |
1426 const CSSValue& StyleBuilderConverter::ConvertRegisteredPropertyValue( | 1425 const CSSValue& StyleBuilderConverter::ConvertRegisteredPropertyValue( |
1427 const StyleResolverState& state, | 1426 const StyleResolverState& state, |
1428 const CSSValue& value) { | 1427 const CSSValue& value) { |
1429 return ComputeRegisteredPropertyValue(state.CssToLengthConversionData(), | 1428 return ComputeRegisteredPropertyValue(state.CssToLengthConversionData(), |
1430 value); | 1429 value); |
1431 } | 1430 } |
1432 | 1431 |
1433 } // namespace blink | 1432 } // namespace blink |
OLD | NEW |