| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |