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

Unified Diff: third_party/WebKit/Source/core/css/CSSCrossfadeValue.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/CSSCrossfadeValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
index 07a1b59e7880ee30e4c2a60f111a4243aa754ec0..b70c8c5483fc5bd472038f55cc9b854fa409a156 100644
--- a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
@@ -102,7 +102,7 @@ static KURL urlForCSSValue(const CSSValue* value)
return KURL(ParsedURLString, toCSSImageValue(*value).url());
}
-CSSCrossfadeValue::CSSCrossfadeValue(RawPtr<CSSValue> fromValue, RawPtr<CSSValue> toValue, RawPtr<CSSPrimitiveValue> percentageValue)
+CSSCrossfadeValue::CSSCrossfadeValue(CSSValue* fromValue, CSSValue* toValue, CSSPrimitiveValue* percentageValue)
: CSSImageGeneratorValue(CrossfadeClass)
, m_fromValue(fromValue)
, m_toValue(toValue)
@@ -148,15 +148,15 @@ String CSSCrossfadeValue::customCSSText() const
return result.toString();
}
-RawPtr<CSSCrossfadeValue> CSSCrossfadeValue::valueWithURLsMadeAbsolute()
+CSSCrossfadeValue* CSSCrossfadeValue::valueWithURLsMadeAbsolute()
{
- RawPtr<CSSValue> fromValue = m_fromValue;
+ CSSValue* fromValue = m_fromValue;
if (m_fromValue->isImageValue())
fromValue = toCSSImageValue(*m_fromValue).valueWithURLMadeAbsolute();
- RawPtr<CSSValue> toValue = m_toValue;
+ CSSValue* toValue = m_toValue;
if (m_toValue->isImageValue())
toValue = toCSSImageValue(*m_toValue).valueWithURLMadeAbsolute();
- return CSSCrossfadeValue::create(fromValue.release(), toValue.release(), m_percentageValue);
+ return CSSCrossfadeValue::create(fromValue, toValue, m_percentageValue);
}
IntSize CSSCrossfadeValue::fixedSize(const LayoutObject& layoutObject, const FloatSize& defaultObjectSize)
@@ -200,8 +200,8 @@ bool CSSCrossfadeValue::knownToBeOpaque(const LayoutObject& layoutObject) const
void CSSCrossfadeValue::loadSubimages(Document* document)
{
- RawPtr<ImageResource> oldCachedFromImage = m_cachedFromImage;
- RawPtr<ImageResource> oldCachedToImage = m_cachedToImage;
+ ImageResource* oldCachedFromImage = m_cachedFromImage;
+ ImageResource* oldCachedToImage = m_cachedToImage;
m_cachedFromImage = cachedImageForCSSValue(m_fromValue.get(), document);
m_cachedToImage = cachedImageForCSSValue(m_toValue.get(), document);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.h ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698