| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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) 2006 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 inline SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document*
document, bool createdByParser) | 37 inline SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document*
document, bool createdByParser) |
| 38 : SVGElement(tagName, document) | 38 : SVGElement(tagName, document) |
| 39 , StyleElement(document, createdByParser) | 39 , StyleElement(document, createdByParser) |
| 40 { | 40 { |
| 41 ASSERT(hasTagName(SVGNames::styleTag)); | 41 ASSERT(hasTagName(SVGNames::styleTag)); |
| 42 } | 42 } |
| 43 | 43 |
| 44 SVGStyleElement::~SVGStyleElement() | 44 SVGStyleElement::~SVGStyleElement() |
| 45 { | 45 { |
| 46 if (m_sheet) | 46 StyleElement::clearDocumentData(document(), this); |
| 47 m_sheet->clearOwnerNode(); | |
| 48 } | 47 } |
| 49 | 48 |
| 50 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document* document, bool createdByParser) | 49 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document* document, bool createdByParser) |
| 51 { | 50 { |
| 52 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); | 51 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); |
| 53 } | 52 } |
| 54 | 53 |
| 55 const AtomicString& SVGStyleElement::type() const | 54 const AtomicString& SVGStyleElement::type() const |
| 56 { | 55 { |
| 57 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css")); | 56 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css")); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 134 |
| 136 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 135 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
| 137 { | 136 { |
| 138 StyleElement::childrenChanged(this); | 137 StyleElement::childrenChanged(this); |
| 139 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 138 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 140 } | 139 } |
| 141 | 140 |
| 142 } | 141 } |
| 143 | 142 |
| 144 #endif // ENABLE(SVG) | 143 #endif // ENABLE(SVG) |
| OLD | NEW |