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

Unified Diff: Source/core/svg/SVGLengthContext.cpp

Issue 1127773003: This CL clean up patch in SVGElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGPathElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.cpp
diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp
index 891fffbbb26125cf671dbf28f7b120ee6f06715f..b64cfd4b81ad9e7f96af5aeb5536c1d5ebee22b1 100644
--- a/Source/core/svg/SVGLengthContext.cpp
+++ b/Source/core/svg/SVGLengthContext.cpp
@@ -56,7 +56,7 @@ static float convertValueFromPercentageToUserUnits(const SVGLength& value, const
static const ComputedStyle* computedStyleForLengthResolving(const SVGElement* context)
{
if (!context)
- return 0;
+ return nullptr;
const ContainerNode* currentContext = context;
do {
@@ -67,13 +67,13 @@ static const ComputedStyle* computedStyleForLengthResolving(const SVGElement* co
// There must be at least a LayoutSVGRoot layoutObject, carrying a style.
ASSERT_NOT_REACHED();
- return 0;
+ return nullptr;
}
static const ComputedStyle* rootElementStyle(const Node* context)
{
if (!context)
- return 0;
+ return nullptr;
const Document& document = context->document();
Node* documentElement = document.documentElement();
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698