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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.h

Issue 2749593002: Remove argument to LayoutSVGResourceGradient::collectGradientAttributes (Closed)
Patch Set: Rebase Created 3 years, 9 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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 29 matching lines...) Expand all
40 static const LayoutSVGResourceType s_resourceType = 40 static const LayoutSVGResourceType s_resourceType =
41 LinearGradientResourceType; 41 LinearGradientResourceType;
42 LayoutSVGResourceType resourceType() const override { return s_resourceType; } 42 LayoutSVGResourceType resourceType() const override { return s_resourceType; }
43 43
44 SVGUnitTypes::SVGUnitType gradientUnits() const override { 44 SVGUnitTypes::SVGUnitType gradientUnits() const override {
45 return attributes().gradientUnits(); 45 return attributes().gradientUnits();
46 } 46 }
47 AffineTransform calculateGradientTransform() const override { 47 AffineTransform calculateGradientTransform() const override {
48 return attributes().gradientTransform(); 48 return attributes().gradientTransform();
49 } 49 }
50 bool collectGradientAttributes(SVGGradientElement*) override; 50 bool collectGradientAttributes() override;
51 PassRefPtr<Gradient> buildGradient() const override; 51 PassRefPtr<Gradient> buildGradient() const override;
52 52
53 FloatPoint startPoint(const LinearGradientAttributes&) const; 53 FloatPoint startPoint(const LinearGradientAttributes&) const;
54 FloatPoint endPoint(const LinearGradientAttributes&) const; 54 FloatPoint endPoint(const LinearGradientAttributes&) const;
55 55
56 private: 56 private:
57 Persistent<LinearGradientAttributesWrapper> m_attributesWrapper; 57 Persistent<LinearGradientAttributesWrapper> m_attributesWrapper;
58 58
59 LinearGradientAttributes& mutableAttributes() { 59 LinearGradientAttributes& mutableAttributes() {
60 return m_attributesWrapper->attributes(); 60 return m_attributesWrapper->attributes();
61 } 61 }
62 const LinearGradientAttributes& attributes() const { 62 const LinearGradientAttributes& attributes() const {
63 return m_attributesWrapper->attributes(); 63 return m_attributesWrapper->attributes();
64 } 64 }
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // LayoutSVGResourceLinearGradient_h 69 #endif // LayoutSVGResourceLinearGradient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698