Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp |
| diff --git a/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp b/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp |
| index e47da16600e0f27c59d39af66c04b9560ff22e60..cfc464141ebd3979cd777103ff71ea02819ed27d 100644 |
| --- a/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp |
| +++ b/third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp |
| @@ -32,10 +32,12 @@ |
| #include "core/css/CSSBasicShapeValues.h" |
| #include "core/css/CSSIdentifierValue.h" |
| #include "core/css/CSSPrimitiveValueMappings.h" |
| +#include "core/css/CSSRayValue.h" |
|
fs
2017/05/15 09:18:14
(Only needed because StyleRay returns CSSRayValue
Eric Willigers
2017/05/15 10:52:23
Done, then undone because ValueForBasicShape now c
|
| #include "core/css/CSSValuePair.h" |
| #include "core/css/resolver/StyleResolverState.h" |
| #include "core/style/BasicShapes.h" |
| #include "core/style/ComputedStyle.h" |
| +#include "core/style/StyleRay.h" |
| namespace blink { |
| @@ -81,6 +83,12 @@ static CSSValue* BasicShapeRadiusToCSSValue(const ComputedStyle& style, |
| CSSValue* ValueForBasicShape(const ComputedStyle& style, |
| const BasicShape* basic_shape) { |
| switch (basic_shape->GetType()) { |
| + case BasicShape::kStyleRayType: |
| + return ToStyleRay(basic_shape)->ComputedCSSValue(); |
| + |
| + case BasicShape::kStylePathType: |
| + return ToStylePath(basic_shape)->ComputedCSSValue(); |
| + |
| case BasicShape::kBasicShapeCircleType: { |
| const BasicShapeCircle* circle = ToBasicShapeCircle(basic_shape); |
| CSSBasicShapeCircleValue* circle_value = |