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 20 matching lines...) Expand all Loading... |
31 inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser
) | 31 inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser
) |
32 : SVGElement(SVGNames::styleTag, document) | 32 : SVGElement(SVGNames::styleTag, document) |
33 , StyleElement(&document, createdByParser) | 33 , StyleElement(&document, createdByParser) |
34 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 34 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
35 { | 35 { |
36 ScriptWrappable::init(this); | 36 ScriptWrappable::init(this); |
37 } | 37 } |
38 | 38 |
39 SVGStyleElement::~SVGStyleElement() | 39 SVGStyleElement::~SVGStyleElement() |
40 { | 40 { |
| 41 #if ENABLE(OILPAN) |
| 42 // Remove this once StyleSheet has a strong pointer to its owner. |
| 43 if (m_sheet) |
| 44 m_sheet->clearOwnerNode(); |
| 45 #else |
41 StyleElement::clearDocumentData(document(), this); | 46 StyleElement::clearDocumentData(document(), this); |
| 47 #endif |
42 } | 48 } |
43 | 49 |
44 PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool cre
atedByParser) | 50 PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool cre
atedByParser) |
45 { | 51 { |
46 return adoptRef(new SVGStyleElement(document, createdByParser)); | 52 return adoptRef(new SVGStyleElement(document, createdByParser)); |
47 } | 53 } |
48 | 54 |
49 bool SVGStyleElement::disabled() const | 55 bool SVGStyleElement::disabled() const |
50 { | 56 { |
51 if (!m_sheet) | 57 if (!m_sheet) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 StyleElement::removedFromDocument(document(), this); | 148 StyleElement::removedFromDocument(document(), this); |
143 } | 149 } |
144 | 150 |
145 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 151 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
146 { | 152 { |
147 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 153 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
148 StyleElement::childrenChanged(this); | 154 StyleElement::childrenChanged(this); |
149 } | 155 } |
150 | 156 |
151 } | 157 } |
OLD | NEW |