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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 LayoutObject* SVGRadialGradientElement::createLayoutObject( 101 LayoutObject* SVGRadialGradientElement::createLayoutObject(
102 const ComputedStyle&) { 102 const ComputedStyle&) {
103 return new LayoutSVGResourceRadialGradient(this); 103 return new LayoutSVGResourceRadialGradient(this);
104 } 104 }
105 105
106 static void setGradientAttributes(const SVGGradientElement& element, 106 static void setGradientAttributes(const SVGGradientElement& element,
107 RadialGradientAttributes& attributes, 107 RadialGradientAttributes& attributes,
108 bool isRadial) { 108 bool isRadial) {
109 element.synchronizeAnimatedSVGAttribute(anyQName());
109 element.collectCommonAttributes(attributes); 110 element.collectCommonAttributes(attributes);
110 111
111 if (!isRadial) 112 if (!isRadial)
112 return; 113 return;
113 const SVGRadialGradientElement& radial = toSVGRadialGradientElement(element); 114 const SVGRadialGradientElement& radial = toSVGRadialGradientElement(element);
114 115
115 if (!attributes.hasCx() && radial.cx()->isSpecified()) 116 if (!attributes.hasCx() && radial.cx()->isSpecified())
116 attributes.setCx(radial.cx()->currentValue()); 117 attributes.setCx(radial.cx()->currentValue());
117 118
118 if (!attributes.hasCy() && radial.cy()->isSpecified()) 119 if (!attributes.hasCy() && radial.cy()->isSpecified())
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool SVGRadialGradientElement::selfHasRelativeLengths() const { 164 bool SVGRadialGradientElement::selfHasRelativeLengths() const {
164 return m_cx->currentValue()->isRelative() || 165 return m_cx->currentValue()->isRelative() ||
165 m_cy->currentValue()->isRelative() || 166 m_cy->currentValue()->isRelative() ||
166 m_r->currentValue()->isRelative() || 167 m_r->currentValue()->isRelative() ||
167 m_fx->currentValue()->isRelative() || 168 m_fx->currentValue()->isRelative() ||
168 m_fy->currentValue()->isRelative() || 169 m_fy->currentValue()->isRelative() ||
169 m_fr->currentValue()->isRelative(); 170 m_fr->currentValue()->isRelative();
170 } 171 }
171 172
172 } // namespace blink 173 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698