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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "config.h" | 23 #include "config.h" |
24 #include "core/svg/SVGStyleElement.h" | 24 #include "core/svg/SVGStyleElement.h" |
25 | 25 |
26 #include "SVGNames.h" | 26 #include "SVGNames.h" |
27 #include "core/css/CSSStyleSheet.h" | 27 #include "core/css/CSSStyleSheet.h" |
28 #include "wtf/StdLibExtras.h" | 28 #include "wtf/StdLibExtras.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 inline SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document&
document, bool createdByParser) | 32 inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser
) |
33 : SVGElement(tagName, document) | 33 : SVGElement(SVGNames::styleTag, document) |
34 , StyleElement(&document, createdByParser) | 34 , StyleElement(&document, createdByParser) |
35 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 35 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
36 { | 36 { |
37 ASSERT(hasTagName(SVGNames::styleTag)); | |
38 ScriptWrappable::init(this); | 37 ScriptWrappable::init(this); |
39 } | 38 } |
40 | 39 |
41 SVGStyleElement::~SVGStyleElement() | 40 SVGStyleElement::~SVGStyleElement() |
42 { | 41 { |
43 StyleElement::clearDocumentData(document(), this); | 42 StyleElement::clearDocumentData(document(), this); |
44 } | 43 } |
45 | 44 |
46 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document& document, bool createdByParser) | 45 PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool cre
atedByParser) |
47 { | 46 { |
48 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); | 47 return adoptRef(new SVGStyleElement(document, createdByParser)); |
49 } | 48 } |
50 | 49 |
51 bool SVGStyleElement::disabled() const | 50 bool SVGStyleElement::disabled() const |
52 { | 51 { |
53 if (!m_sheet) | 52 if (!m_sheet) |
54 return false; | 53 return false; |
55 | 54 |
56 return m_sheet->disabled(); | 55 return m_sheet->disabled(); |
57 } | 56 } |
58 | 57 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 StyleElement::removedFromDocument(document(), this); | 143 StyleElement::removedFromDocument(document(), this); |
145 } | 144 } |
146 | 145 |
147 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 146 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
148 { | 147 { |
149 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 148 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
150 StyleElement::childrenChanged(this); | 149 StyleElement::childrenChanged(this); |
151 } | 150 } |
152 | 151 |
153 } | 152 } |
OLD | NEW |