Index: third_party/WebKit/Source/core/css/CSSGradientValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp |
index 9b5ee54f4a273f4ee69bf23d08304a63f9c77fdc..b8479450a6d75107b05c978732c4d71c90715681 100644 |
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp |
@@ -597,7 +597,8 @@ void CSSGradientValue::AddStops( |
->ToCalcValue(conversion_data) |
->Evaluate(gradient_length); |
stops[i].offset = (gradient_length > 0) ? length / gradient_length : 0; |
- } else if (stop.offset_->IsAngle()) { |
+ } else if (CSSPrimitiveValue::IsAngle( |
+ stop.offset_->TypeWithCalcResolved())) { |
stops[i].offset = stop.offset_->ComputeDegrees() / 360.0f; |
} else { |
NOTREACHED(); |