| Index: Source/core/css/CSSCrossfadeValue.cpp
|
| diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp
|
| index 57d0a8d0b0383721f077bd507925c453f726a057..f27803a48fab7c86bad1af2073c1175da0072e07 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)
|
|
|