OLD | NEW |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 SVGElement::InvalidationGuard invalidationGuard(this); | 98 SVGElement::InvalidationGuard invalidationGuard(this); |
99 | 99 |
100 updateRelativeLengthsInformation(); | 100 updateRelativeLengthsInformation(); |
101 | 101 |
102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
103 if (renderer) | 103 if (renderer) |
104 renderer->invalidateCacheAndMarkForLayout(); | 104 renderer->invalidateCacheAndMarkForLayout(); |
105 } | 105 } |
106 | 106 |
107 RenderObject* SVGRadialGradientElement::createRenderer(RenderStyle*) | 107 RenderObject* SVGRadialGradientElement::createRenderer(const RenderStyle*) |
108 { | 108 { |
109 return new RenderSVGResourceRadialGradient(this); | 109 return new RenderSVGResourceRadialGradient(this); |
110 } | 110 } |
111 | 111 |
112 static void setGradientAttributes(SVGGradientElement* element, RadialGradientAtt
ributes& attributes, bool isRadial = true) | 112 static void setGradientAttributes(SVGGradientElement* element, RadialGradientAtt
ributes& attributes, bool isRadial = true) |
113 { | 113 { |
114 if (!attributes.hasSpreadMethod() && element->spreadMethod()->isSpecified()) | 114 if (!attributes.hasSpreadMethod() && element->spreadMethod()->isSpecified()) |
115 attributes.setSpreadMethod(element->spreadMethod()->currentValue()->enum
Value()); | 115 attributes.setSpreadMethod(element->spreadMethod()->currentValue()->enum
Value()); |
116 | 116 |
117 if (!attributes.hasGradientUnits() && element->gradientUnits()->isSpecified(
)) | 117 if (!attributes.hasGradientUnits() && element->gradientUnits()->isSpecified(
)) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 { | 197 { |
198 return m_cx->currentValue()->isRelative() | 198 return m_cx->currentValue()->isRelative() |
199 || m_cy->currentValue()->isRelative() | 199 || m_cy->currentValue()->isRelative() |
200 || m_r->currentValue()->isRelative() | 200 || m_r->currentValue()->isRelative() |
201 || m_fx->currentValue()->isRelative() | 201 || m_fx->currentValue()->isRelative() |
202 || m_fy->currentValue()->isRelative() | 202 || m_fy->currentValue()->isRelative() |
203 || m_fr->currentValue()->isRelative(); | 203 || m_fr->currentValue()->isRelative(); |
204 } | 204 } |
205 | 205 |
206 } // namespace blink | 206 } // namespace blink |
OLD | NEW |