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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h

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/CSSPrimitiveValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
index bd245349b8cfb2e4719b58c7af5016cdcf6b35b0..b6148e7346723040eb6e4ac6d4921549e17f57a1 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
@@ -200,19 +200,19 @@ public:
bool isValueID() const { return type() == UnitType::ValueID; }
bool colorIsDerivedFromElement() const;
- static RawPtr<CSSPrimitiveValue> createIdentifier(CSSValueID valueID)
+ static CSSPrimitiveValue* createIdentifier(CSSValueID valueID)
{
return new CSSPrimitiveValue(valueID);
}
- static RawPtr<CSSPrimitiveValue> create(double value, UnitType type)
+ static CSSPrimitiveValue* create(double value, UnitType type)
{
return new CSSPrimitiveValue(value, type);
}
- static RawPtr<CSSPrimitiveValue> create(const Length& value, float zoom)
+ static CSSPrimitiveValue* create(const Length& value, float zoom)
{
return new CSSPrimitiveValue(value, zoom);
}
- template<typename T> static RawPtr<CSSPrimitiveValue> create(T value)
+ template<typename T> static CSSPrimitiveValue* create(T value)
{
static_assert(!std::is_same<T, CSSValueID>::value, "Do not call create() with a CSSValueID; call createIdentifier() instead");
return new CSSPrimitiveValue(value);
@@ -262,13 +262,8 @@ private:
CSSPrimitiveValue(double, UnitType);
template<typename T> CSSPrimitiveValue(T); // Defined in CSSPrimitiveValueMappings.h
- template<typename T> CSSPrimitiveValue(T* val)
- : CSSValue(PrimitiveClass)
- {
- init(RawPtr<T>(val));
- }
- template<typename T> CSSPrimitiveValue(RawPtr<T> val)
+ template<typename T> CSSPrimitiveValue(T* val)
: CSSValue(PrimitiveClass)
{
init(val);
@@ -280,7 +275,7 @@ private:
void init(UnitType);
void init(const Length&);
- void init(RawPtr<CSSCalcValue>);
+ void init(CSSCalcValue*);
double computeLengthDouble(const CSSToLengthConversionData&) const;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPathValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698