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

Unified Diff: third_party/WebKit/Source/core/css/DOMWindowCSS.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/DOMWindowCSS.cpp
diff --git a/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp b/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
index 3c5aff723ce4835f0654f1e3ae82f3898928a7b6..3434d8602a39211e47b982c4192848adc16e5392 100644
--- a/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
+++ b/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
@@ -44,8 +44,8 @@ bool DOMWindowCSS::supports(const String& property, const String& value)
CSSPropertyID unresolvedProperty = unresolvedCSSPropertyID(property);
if (unresolvedProperty == CSSPropertyInvalid) {
if (RuntimeEnabledFeatures::cssVariablesEnabled() && CSSVariableParser::isValidVariableName(property)) {
- RawPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create(HTMLStandardMode);
- return CSSParser::parseValueForCustomProperty(dummyStyle.get(), "--valid", value, false, 0);
+ MutableStylePropertySet* dummyStyle = MutableStylePropertySet::create(HTMLStandardMode);
+ return CSSParser::parseValueForCustomProperty(dummyStyle, "--valid", value, false, 0);
}
return false;
}
@@ -53,8 +53,8 @@ bool DOMWindowCSS::supports(const String& property, const String& value)
ASSERT(CSSPropertyMetadata::isEnabledProperty(unresolvedProperty));
// This will return false when !important is present
- RawPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create(HTMLStandardMode);
- return CSSParser::parseValue(dummyStyle.get(), unresolvedProperty, value, false, 0);
+ MutableStylePropertySet* dummyStyle = MutableStylePropertySet::create(HTMLStandardMode);
+ return CSSParser::parseValue(dummyStyle, unresolvedProperty, value, false, 0);
}
bool DOMWindowCSS::supports(const String& conditionText)

Powered by Google App Engine
This is Rietveld 408576698