Index: Source/core/css/CSSCursorImageValue.cpp |
diff --git a/Source/core/css/CSSCursorImageValue.cpp b/Source/core/css/CSSCursorImageValue.cpp |
index 24caef773da3770a51b37011994a0a3339594cbe..65c42d8d3ec16ad53b6d6896b7dfb1b8654aa338 100644 |
--- a/Source/core/css/CSSCursorImageValue.cpp |
+++ b/Source/core/css/CSSCursorImageValue.cpp |
@@ -122,7 +122,7 @@ bool CSSCursorImageValue::updateIfSVGCursorIsUsed(Element* element) |
StyleImage* CSSCursorImageValue::cachedImage(ResourceFetcher* loader, float deviceScaleFactor) |
{ |
if (m_imageValue->isImageSetValue()) |
- return static_cast<CSSImageSetValue*>(m_imageValue.get())->cachedImageSet(loader, deviceScaleFactor); |
+ return toCSSImageSetValue(m_imageValue.get())->cachedImageSet(loader, deviceScaleFactor); |
if (!m_accessedImage) { |
m_accessedImage = true; |
@@ -155,7 +155,7 @@ StyleImage* CSSCursorImageValue::cachedOrPendingImage(float deviceScaleFactor) |
{ |
// Need to delegate completely so that changes in device scale factor can be handled appropriately. |
if (m_imageValue->isImageSetValue()) |
- return static_cast<CSSImageSetValue*>(m_imageValue.get())->cachedOrPendingImageSet(deviceScaleFactor); |
+ return toCSSImageSetValue(m_imageValue.get())->cachedOrPendingImageSet(deviceScaleFactor); |
if (!m_image) |
m_image = StylePendingImage::create(this); |