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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 return RenderStyle::initialBoxReflect(); | 66 return RenderStyle::initialBoxReflect(); |
67 } | 67 } |
68 | 68 |
69 CSSReflectValue* reflectValue = toCSSReflectValue(value); | 69 CSSReflectValue* reflectValue = toCSSReflectValue(value); |
70 RefPtr<StyleReflection> reflection = StyleReflection::create(); | 70 RefPtr<StyleReflection> reflection = StyleReflection::create(); |
71 reflection->setDirection(*reflectValue->direction()); | 71 reflection->setDirection(*reflectValue->direction()); |
72 if (reflectValue->offset()) | 72 if (reflectValue->offset()) |
73 reflection->setOffset(reflectValue->offset()->convertToLength<FixedConve
rsion | PercentConversion>(state.cssToLengthConversionData())); | 73 reflection->setOffset(reflectValue->offset()->convertToLength<FixedConve
rsion | PercentConversion>(state.cssToLengthConversionData())); |
74 NinePieceImage mask; | 74 NinePieceImage mask; |
75 mask.setMaskDefaults(); | 75 mask.setMaskDefaults(); |
76 state.styleMap().mapNinePieceImage(state.style(), CSSPropertyWebkitBoxReflec
t, reflectValue->mask(), mask); | 76 CSSToStyleMap::mapNinePieceImage(state, CSSPropertyWebkitBoxReflect, reflect
Value->mask(), mask); |
77 reflection->setMask(mask); | 77 reflection->setMask(mask); |
78 | 78 |
79 return reflection.release(); | 79 return reflection.release(); |
80 } | 80 } |
81 | 81 |
82 Color StyleBuilderConverter::convertColor(StyleResolverState& state, CSSValue* v
alue, bool forVisitedLink) | 82 Color StyleBuilderConverter::convertColor(StyleResolverState& state, CSSValue* v
alue, bool forVisitedLink) |
83 { | 83 { |
84 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 84 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
85 return state.document().textLinkColors().colorFromPrimitiveValue(primitiveVa
lue, state.style()->color(), forVisitedLink); | 85 return state.document().textLinkColors().colorFromPrimitiveValue(primitiveVa
lue, state.style()->color(), forVisitedLink); |
86 } | 86 } |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 CSSPrimitiveValue* primitiveValueZ = toCSSPrimitiveValue(list->item(2)); | 850 CSSPrimitiveValue* primitiveValueZ = toCSSPrimitiveValue(list->item(2)); |
851 | 851 |
852 return TransformOrigin( | 852 return TransformOrigin( |
853 convertOriginLength<CSSValueLeft, CSSValueRight>(state, primitiveValueX)
, | 853 convertOriginLength<CSSValueLeft, CSSValueRight>(state, primitiveValueX)
, |
854 convertOriginLength<CSSValueTop, CSSValueBottom>(state, primitiveValueY)
, | 854 convertOriginLength<CSSValueTop, CSSValueBottom>(state, primitiveValueY)
, |
855 StyleBuilderConverter::convertComputedLength<float>(state, primitiveValu
eZ) | 855 StyleBuilderConverter::convertComputedLength<float>(state, primitiveValu
eZ) |
856 ); | 856 ); |
857 } | 857 } |
858 | 858 |
859 } // namespace blink | 859 } // namespace blink |
OLD | NEW |