Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: size contain? Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 =

Powered by Google App Engine
This is Rietveld 408576698