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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 PassRefPtr<Gradient> LayoutSVGResourceRadialGradient::BuildGradient() const { 68 PassRefPtr<Gradient> LayoutSVGResourceRadialGradient::BuildGradient() const {
69 const RadialGradientAttributes& attributes = this->Attributes(); 69 const RadialGradientAttributes& attributes = this->Attributes();
70 RefPtr<Gradient> gradient = Gradient::CreateRadial( 70 RefPtr<Gradient> gradient = Gradient::CreateRadial(
71 FocalPoint(attributes), FocalRadius(attributes), CenterPoint(attributes), 71 FocalPoint(attributes), FocalRadius(attributes), CenterPoint(attributes),
72 Radius(attributes), 1, 72 Radius(attributes), 1,
73 PlatformSpreadMethodFromSVGType(attributes.SpreadMethod()), 73 PlatformSpreadMethodFromSVGType(attributes.SpreadMethod()),
74 Gradient::ColorInterpolation::kUnpremultiplied); 74 Gradient::ColorInterpolation::kUnpremultiplied);
75 gradient->AddColorStops(attributes.Stops()); 75 gradient->AddColorStops(attributes.Stops());
76 return gradient.Release(); 76 return gradient;
77 } 77 }
78 78
79 } // namespace blink 79 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698