Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCursorImageValue.h ('k') | third_party/WebKit/Source/core/css/CSSCustomIdentValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698