Index: Source/core/css/CSSCrossfadeValue.cpp |
diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp |
index f484eb7e92e6ce2e77e11a3f2c0262d5762b4a85..0fcf5c942c3d39f4e98f95e30070cbf389c30ddc 100644 |
--- a/Source/core/css/CSSCrossfadeValue.cpp |
+++ b/Source/core/css/CSSCrossfadeValue.cpp |
@@ -104,7 +104,7 @@ String CSSCrossfadeValue::customCSSText() const |
IntSize CSSCrossfadeValue::fixedSize(const LayoutObject* layoutObject) |
{ |
- float percentage = m_percentageValue->getFloatValue(); |
+ float percentage = toCSSPrimitiveValue(*m_percentageValue).getFloatValue(); |
float inversePercentage = 1 - percentage; |
Document* document = &layoutObject->document(); |
@@ -179,7 +179,7 @@ PassRefPtr<Image> CSSCrossfadeValue::image(LayoutObject* layoutObject, const Int |
if (!fromImage || !toImage) |
return Image::nullImage(); |
- m_generatedImage = CrossfadeGeneratedImage::create(fromImage, toImage, m_percentageValue->getFloatValue(), fixedSize(layoutObject), size); |
+ m_generatedImage = CrossfadeGeneratedImage::create(fromImage, toImage, toCSSPrimitiveValue(*m_percentageValue).getFloatValue(), fixedSize(layoutObject), size); |
return m_generatedImage.release(); |
} |
@@ -211,7 +211,7 @@ bool CSSCrossfadeValue::equals(const CSSCrossfadeValue& other) const |
{ |
return m_fromValue.equals(other.m_fromValue) |
&& m_toValue.equals(other.m_toValue) |
- && compareCSSValuePtr(m_percentageValue, other.m_percentageValue); |
+ && m_percentageValue == other.m_percentageValue; |
} |
DEFINE_TRACE_AFTER_DISPATCH(CSSCrossfadeValue) |