| Index: third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp b/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
|
| index a4d912fac9ed1e5b6209085f92c416d30c9be185..4912942cba0659978c54b9cb2ba8b342145ac27b 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp
|
| @@ -42,7 +42,7 @@ static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
|
| return isSVGCursorElement(element) ? toSVGCursorElement(element) : nullptr;
|
| }
|
|
|
| -CSSCursorImageValue::CSSCursorImageValue(RawPtr<CSSValue> imageValue, bool hotSpotSpecified, const IntPoint& hotSpot)
|
| +CSSCursorImageValue::CSSCursorImageValue(CSSValue* imageValue, bool hotSpotSpecified, const IntPoint& hotSpot)
|
| : CSSValue(CursorImageClass)
|
| , m_imageValue(imageValue)
|
| , m_hotSpotSpecified(hotSpotSpecified)
|
| @@ -144,10 +144,10 @@ StyleImage* CSSCursorImageValue::cacheImage(Document* document, float deviceScal
|
| // to change the URL of the CSSImageValue (which would then change behavior like cssText),
|
| // we create an alternate CSSImageValue to use.
|
| if (isSVGCursor() && document) {
|
| - RawPtr<CSSImageValue> imageValue = toCSSImageValue(m_imageValue.get());
|
| + CSSImageValue* imageValue = toCSSImageValue(m_imageValue.get());
|
| // FIXME: This will fail if the <cursor> element is in a shadow DOM (bug 59827)
|
| if (SVGCursorElement* cursorElement = resourceReferencedByCursorElement(imageValue->url(), *document)) {
|
| - RawPtr<CSSImageValue> svgImageValue = CSSImageValue::create(document->completeURL(cursorElement->href()->currentValue()->value()));
|
| + CSSImageValue* svgImageValue = CSSImageValue::create(document->completeURL(cursorElement->href()->currentValue()->value()));
|
| svgImageValue->setReferrer(imageValue->referrer());
|
| m_cachedImage = svgImageValue->cacheImage(document);
|
| return m_cachedImage.get();
|
| @@ -166,7 +166,7 @@ StyleImage* CSSCursorImageValue::cacheImage(Document* document, float deviceScal
|
| bool CSSCursorImageValue::isSVGCursor() const
|
| {
|
| if (m_imageValue->isImageValue()) {
|
| - RawPtr<CSSImageValue> imageValue = toCSSImageValue(m_imageValue.get());
|
| + CSSImageValue* imageValue = toCSSImageValue(m_imageValue.get());
|
| KURL kurl(ParsedURLString, imageValue->url());
|
| return kurl.hasFragmentIdentifier();
|
| }
|
|
|