| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 if (attrName == HTMLNames::classAttr) { | 974 if (attrName == HTMLNames::classAttr) { |
| 975 classAttributeChanged(classNameCurrentValue()); | 975 classAttributeChanged(classNameCurrentValue()); |
| 976 SVGElementInstance::invalidateAllInstancesOfElement(this); | 976 SVGElementInstance::invalidateAllInstancesOfElement(this); |
| 977 return; | 977 return; |
| 978 } | 978 } |
| 979 | 979 |
| 980 if (isIdAttributeName(attrName)) { | 980 if (isIdAttributeName(attrName)) { |
| 981 RenderObject* object = renderer(); | 981 RenderObject* object = renderer(); |
| 982 // Notify resources about id changes, this is important as we cache reso
urces by id in SVGDocumentExtensions | 982 // Notify resources about id changes, this is important as we cache reso
urces by id in SVGDocumentExtensions |
| 983 if (object && object->isSVGResourceContainer()) | 983 if (object && object->isSVGResourceContainer()) |
| 984 object->toRenderSVGResourceContainer()->idChanged(); | 984 toRenderSVGResourceContainer(object)->idChanged(); |
| 985 if (inDocument()) | 985 if (inDocument()) |
| 986 buildPendingResourcesIfNeeded(); | 986 buildPendingResourcesIfNeeded(); |
| 987 SVGElementInstance::invalidateAllInstancesOfElement(this); | 987 SVGElementInstance::invalidateAllInstancesOfElement(this); |
| 988 return; | 988 return; |
| 989 } | 989 } |
| 990 } | 990 } |
| 991 | 991 |
| 992 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons
t | 992 void SVGElement::synchronizeAnimatedSVGAttribute(const QualifiedName& name) cons
t |
| 993 { | 993 { |
| 994 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty) | 994 if (!elementData() || !elementData()->m_animatedSVGAttributesAreDirty) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 if (name == classAttr) | 1180 if (name == classAttr) |
| 1181 return true; | 1181 return true; |
| 1182 | 1182 |
| 1183 return animatableAttributes.contains(name); | 1183 return animatableAttributes.contains(name); |
| 1184 } | 1184 } |
| 1185 #endif | 1185 #endif |
| 1186 | 1186 |
| 1187 } | 1187 } |
| OLD | NEW |