| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |