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(const QualifiedName& tagName, Document&
document, bool createdByParser) |
33 : SVGElement(tagName, document) | 33 : SVGElement(tagName, 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)); | 37 ASSERT(hasTagName(SVGNames::styleTag)); |
38 ScriptWrappable::init(this); | 38 ScriptWrappable::init(this); |
39 } | 39 } |
40 | 40 |
41 SVGStyleElement::~SVGStyleElement() | 41 SVGStyleElement::~SVGStyleElement() |
42 { | 42 { |
43 StyleElement::clearDocumentData(document(), this); | 43 StyleElement::clearDocumentData(document(), this); |
44 } | 44 } |
45 | 45 |
46 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document* document, bool createdByParser) | 46 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName
, Document& document, bool createdByParser) |
47 { | 47 { |
48 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); | 48 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); |
49 } | 49 } |
50 | 50 |
51 bool SVGStyleElement::disabled() const | 51 bool SVGStyleElement::disabled() const |
52 { | 52 { |
53 if (!m_sheet) | 53 if (!m_sheet) |
54 return false; | 54 return false; |
55 | 55 |
56 return m_sheet->disabled(); | 56 return m_sheet->disabled(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 StyleElement::removedFromDocument(document(), this); | 146 StyleElement::removedFromDocument(document(), this); |
147 } | 147 } |
148 | 148 |
149 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 149 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
150 { | 150 { |
151 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 151 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
152 StyleElement::childrenChanged(this); | 152 StyleElement::childrenChanged(this); |
153 } | 153 } |
154 | 154 |
155 } | 155 } |
OLD | NEW |