| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 m_width->setDefaultValueAsString("100%"); | 46 m_width->setDefaultValueAsString("100%"); |
| 47 m_height->setDefaultValueAsString("100%"); | 47 m_height->setDefaultValueAsString("100%"); |
| 48 | 48 |
| 49 addToPropertyMap(m_x); | 49 addToPropertyMap(m_x); |
| 50 addToPropertyMap(m_y); | 50 addToPropertyMap(m_y); |
| 51 addToPropertyMap(m_width); | 51 addToPropertyMap(m_width); |
| 52 addToPropertyMap(m_height); | 52 addToPropertyMap(m_height); |
| 53 addToPropertyMap(m_result); | 53 addToPropertyMap(m_result); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void SVGFilterPrimitiveStandardAttributes::trace(Visitor* visitor) |
| 57 { |
| 58 visitor->trace(m_x); |
| 59 visitor->trace(m_y); |
| 60 visitor->trace(m_width); |
| 61 visitor->trace(m_height); |
| 62 visitor->trace(m_result); |
| 63 SVGElement::trace(visitor); |
| 64 } |
| 65 |
| 56 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN
ame& attrName) | 66 bool SVGFilterPrimitiveStandardAttributes::isSupportedAttribute(const QualifiedN
ame& attrName) |
| 57 { | 67 { |
| 58 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 68 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 59 if (supportedAttributes.isEmpty()) { | 69 if (supportedAttributes.isEmpty()) { |
| 60 supportedAttributes.add(SVGNames::xAttr); | 70 supportedAttributes.add(SVGNames::xAttr); |
| 61 supportedAttributes.add(SVGNames::yAttr); | 71 supportedAttributes.add(SVGNames::yAttr); |
| 62 supportedAttributes.add(SVGNames::widthAttr); | 72 supportedAttributes.add(SVGNames::widthAttr); |
| 63 supportedAttributes.add(SVGNames::heightAttr); | 73 supportedAttributes.add(SVGNames::heightAttr); |
| 64 supportedAttributes.add(SVGNames::resultAttr); | 74 supportedAttributes.add(SVGNames::resultAttr); |
| 65 } | 75 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return; | 159 return; |
| 150 | 160 |
| 151 RenderObject* renderer = parent->renderer(); | 161 RenderObject* renderer = parent->renderer(); |
| 152 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) | 162 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) |
| 153 return; | 163 return; |
| 154 | 164 |
| 155 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, false); | 165 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, false); |
| 156 } | 166 } |
| 157 | 167 |
| 158 } | 168 } |
| OLD | NEW |