OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
42 REGISTER_LOCAL_ANIMATED_PROPERTY(x) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(x) |
43 REGISTER_LOCAL_ANIMATED_PROPERTY(y) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(y) |
44 REGISTER_LOCAL_ANIMATED_PROPERTY(width) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(width) |
45 REGISTER_LOCAL_ANIMATED_PROPERTY(height) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(height) |
46 REGISTER_LOCAL_ANIMATED_PROPERTY(result) | 46 REGISTER_LOCAL_ANIMATED_PROPERTY(result) |
47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | 47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) |
48 END_REGISTER_ANIMATED_PROPERTIES | 48 END_REGISTER_ANIMATED_PROPERTIES |
49 | 49 |
50 SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const
QualifiedName& tagName, Document* document) | 50 SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const
QualifiedName& tagName, Document& document) |
51 : SVGElement(tagName, document) | 51 : SVGElement(tagName, document) |
52 , m_x(LengthModeWidth, "0%") | 52 , m_x(LengthModeWidth, "0%") |
53 , m_y(LengthModeHeight, "0%") | 53 , m_y(LengthModeHeight, "0%") |
54 , m_width(LengthModeWidth, "100%") | 54 , m_width(LengthModeWidth, "100%") |
55 , m_height(LengthModeHeight, "100%") | 55 , m_height(LengthModeHeight, "100%") |
56 { | 56 { |
57 // Spec: If the x/y attribute is not specified, the effect is as if a value
of "0%" were specified. | 57 // Spec: If the x/y attribute is not specified, the effect is as if a value
of "0%" were specified. |
58 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "100%" were specified. | 58 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "100%" were specified. |
59 registerAnimatedPropertiesForSVGFilterPrimitiveStandardAttributes(); | 59 registerAnimatedPropertiesForSVGFilterPrimitiveStandardAttributes(); |
60 } | 60 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 return; | 166 return; |
167 | 167 |
168 RenderObject* renderer = parent->renderer(); | 168 RenderObject* renderer = parent->renderer(); |
169 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) | 169 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) |
170 return; | 170 return; |
171 | 171 |
172 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals
e); | 172 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals
e); |
173 } | 173 } |
174 | 174 |
175 } | 175 } |
OLD | NEW |