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

Unified Diff: Source/core/css/SVGCSSParser.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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
« no previous file with comments | « Source/core/css/SVGCSSComputedStyleDeclaration.cpp ('k') | Source/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SVGCSSParser.cpp
diff --git a/Source/core/css/SVGCSSParser.cpp b/Source/core/css/SVGCSSParser.cpp
index 78700656b44bd27ceb69503178bed7a50cc23f9b..befbe7c420e120a23689e73080ed3c881f3ff9f9 100644
--- a/Source/core/css/SVGCSSParser.cpp
+++ b/Source/core/css/SVGCSSParser.cpp
@@ -320,7 +320,7 @@ bool CSSPropertyParser::parseSVGValue(CSSPropertyID propId, bool important)
// FIXME calc() http://webkit.org/b/16662 : actually create a CSSPrimitiveValue here, ie
// parsedValue = CSSPrimitiveValue::create(m_parsedCalculation.release());
m_parsedCalculation.release();
- parsedValue = 0;
+ parsedValue = nullptr;
}
m_valueList->next();
}
@@ -349,7 +349,7 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSVGStrokeDasharray()
value = m_valueList->next();
}
if (!valid_primitive)
- return 0;
+ return nullptr;
return ret.release();
}
@@ -365,7 +365,7 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSVGColor()
{
RGBA32 c = Color::transparent;
if (!parseColorFromValue(m_valueList->current(), c))
- return 0;
+ return nullptr;
return SVGColor::createFromColor(Color(c));
}
@@ -373,11 +373,11 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSVGColor()
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parsePaintOrder() const
{
if (m_valueList->size() > 3)
- return 0;
+ return nullptr;
CSSParserValue* value = m_valueList->current();
if (!value)
- return 0;
+ return nullptr;
RefPtrWillBeRawPtr<CSSValueList> parsedValues = CSSValueList::createSpaceSeparated();
@@ -390,27 +390,27 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parsePaintOrder() const
switch (value->id) {
case CSSValueNormal:
// normal inside [fill || stroke || markers] not valid
- return 0;
+ return nullptr;
case CSSValueFill:
if (seenFill)
- return 0;
+ return nullptr;
seenFill = true;
break;
case CSSValueStroke:
if (seenStroke)
- return 0;
+ return nullptr;
seenStroke = true;
break;
case CSSValueMarkers:
if (seenMarkers)
- return 0;
+ return nullptr;
seenMarkers = true;
break;
default:
- return 0;
+ return nullptr;
}
parsedValues->append(CSSPrimitiveValue::createIdentifier(value->id));
« no previous file with comments | « Source/core/css/SVGCSSComputedStyleDeclaration.cpp ('k') | Source/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698