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 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 | 26 |
27 #include "core/css/resolver/StyleBuilderConverter.h" | 27 #include "core/css/resolver/StyleBuilderConverter.h" |
28 | 28 |
29 #include "core/css/BasicShapeFunctions.h" | 29 #include "core/css/BasicShapeFunctions.h" |
30 #include "core/css/CSSBasicShapeValues.h" | 30 #include "core/css/CSSBasicShapeValues.h" |
31 #include "core/css/CSSContentDistributionValue.h" | 31 #include "core/css/CSSContentDistributionValue.h" |
32 #include "core/css/CSSFontFeatureValue.h" | 32 #include "core/css/CSSFontFeatureValue.h" |
33 #include "core/css/CSSFunctionValue.h" | 33 #include "core/css/CSSFunctionValue.h" |
34 #include "core/css/CSSGridLineNamesValue.h" | 34 #include "core/css/CSSGridLineNamesValue.h" |
| 35 #include "core/css/CSSPathValue.h" |
35 #include "core/css/CSSPrimitiveValueMappings.h" | 36 #include "core/css/CSSPrimitiveValueMappings.h" |
36 #include "core/css/CSSQuadValue.h" | 37 #include "core/css/CSSQuadValue.h" |
37 #include "core/css/CSSReflectValue.h" | 38 #include "core/css/CSSReflectValue.h" |
38 #include "core/css/CSSShadowValue.h" | 39 #include "core/css/CSSShadowValue.h" |
39 #include "core/css/CSSStringValue.h" | 40 #include "core/css/CSSStringValue.h" |
40 #include "core/css/CSSURIValue.h" | 41 #include "core/css/CSSURIValue.h" |
41 #include "core/css/CSSValuePair.h" | 42 #include "core/css/CSSValuePair.h" |
42 #include "core/css/resolver/FilterOperationResolver.h" | 43 #include "core/css/resolver/FilterOperationResolver.h" |
43 #include "core/svg/SVGURIReference.h" | 44 #include "core/svg/SVGURIReference.h" |
44 #include "platform/transforms/RotateTransformOperation.h" | 45 #include "platform/transforms/RotateTransformOperation.h" |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 | 947 |
947 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale
3D); | 948 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale
3D); |
948 } | 949 } |
949 | 950 |
950 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style
ResolverState& state, const CSSValue& value) | 951 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style
ResolverState& state, const CSSValue& value) |
951 { | 952 { |
952 const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value); | 953 const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value); |
953 return primitiveValue.getValueID() == CSSValueFromImage ? RespectImageOrient
ation : DoNotRespectImageOrientation; | 954 return primitiveValue.getValueID() == CSSValueFromImage ? RespectImageOrient
ation : DoNotRespectImageOrientation; |
954 } | 955 } |
955 | 956 |
956 CSSPathValue* StyleBuilderConverter::convertPath(StyleResolverState&, CSSValue&
value) | 957 PassRefPtr<StylePath> StyleBuilderConverter::convertPath(StyleResolverState&, CS
SValue& value) |
957 { | 958 { |
958 return toCSSPathValue(&value); | 959 return toCSSPathValue(value).cachedPath(); |
959 } | 960 } |
960 | 961 |
961 } // namespace blink | 962 } // namespace blink |
OLD | NEW |