| 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 22 matching lines...) Expand all Loading... |
| 33 #include <wtf/StdLibExtras.h> | 33 #include <wtf/StdLibExtras.h> |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 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 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 40 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
| 41 { | 41 { |
| 42 ASSERT(hasTagName(SVGNames::styleTag)); | 42 ASSERT(hasTagName(SVGNames::styleTag)); |
| 43 ScriptWrappable::init(this); |
| 43 } | 44 } |
| 44 | 45 |
| 45 SVGStyleElement::~SVGStyleElement() | 46 SVGStyleElement::~SVGStyleElement() |
| 46 { | 47 { |
| 47 StyleElement::clearDocumentData(document(), this); | 48 StyleElement::clearDocumentData(document(), this); |
| 48 } | 49 } |
| 49 | 50 |
| 50 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document* document, bool createdByParser) | 51 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document* document, bool createdByParser) |
| 51 { | 52 { |
| 52 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); | 53 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 153 |
| 153 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 154 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
| 154 { | 155 { |
| 155 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 156 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 156 StyleElement::childrenChanged(this); | 157 StyleElement::childrenChanged(this); |
| 157 } | 158 } |
| 158 | 159 |
| 159 } | 160 } |
| 160 | 161 |
| 161 #endif // ENABLE(SVG) | 162 #endif // ENABLE(SVG) |
| OLD | NEW |