| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 if (childContext.node()->isSVGElement()) { | 524 if (childContext.node()->isSVGElement()) { |
| 525 SVGElement* svgChild = toSVGElement(childContext.node()); | 525 SVGElement* svgChild = toSVGElement(childContext.node()); |
| 526 if (invalidTextContent.contains(svgChild->tagQName())) | 526 if (invalidTextContent.contains(svgChild->tagQName())) |
| 527 return false; | 527 return false; |
| 528 | 528 |
| 529 return svgChild->isValid(); | 529 return svgChild->isValid(); |
| 530 } | 530 } |
| 531 return false; | 531 return false; |
| 532 } | 532 } |
| 533 | 533 |
| 534 void SVGElement::attributeChanged(const QualifiedName& name, const AtomicString&
newValue) | 534 void SVGElement::attributeChanged(const QualifiedName& name, const AtomicString&
newValue, AttributeModificationReason) |
| 535 { | 535 { |
| 536 StyledElement::attributeChanged(name, newValue); | 536 StyledElement::attributeChanged(name, newValue); |
| 537 | 537 |
| 538 if (isIdAttributeName(name)) | 538 if (isIdAttributeName(name)) |
| 539 document()->accessSVGExtensions()->rebuildAllElementReferencesForTarget(
this); | 539 document()->accessSVGExtensions()->rebuildAllElementReferencesForTarget(
this); |
| 540 | 540 |
| 541 // Changes to the style attribute are processed lazily (see Element::getAttr
ibute() and related methods), | 541 // Changes to the style attribute are processed lazily (see Element::getAttr
ibute() and related methods), |
| 542 // so we don't want changes to the style attribute to result in extra work h
ere. | 542 // so we don't want changes to the style attribute to result in extra work h
ere. |
| 543 if (name != HTMLNames::styleAttr) | 543 if (name != HTMLNames::styleAttr) |
| 544 svgAttributeChanged(name); | 544 svgAttributeChanged(name); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 if (name == classAttr) | 731 if (name == classAttr) |
| 732 return isSVGStyledElement(); | 732 return isSVGStyledElement(); |
| 733 | 733 |
| 734 return animatableAttributes.contains(name); | 734 return animatableAttributes.contains(name); |
| 735 } | 735 } |
| 736 #endif | 736 #endif |
| 737 | 737 |
| 738 } | 738 } |
| 739 | 739 |
| 740 #endif // ENABLE(SVG) | 740 #endif // ENABLE(SVG) |
| OLD | NEW |