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) | |
41 StyleElement::clearDocumentData(document(), this); | 42 StyleElement::clearDocumentData(document(), this); |
haraken
2014/04/25 14:30:32
I think we still need to call m_sheet->clearOwnerN
Mads Ager (chromium)
2014/04/28 09:45:21
Yes, done. Added comment that the style sheet owne
| |
43 #endif | |
42 } | 44 } |
43 | 45 |
44 PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool cre atedByParser) | 46 PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool cre atedByParser) |
45 { | 47 { |
46 return adoptRef(new SVGStyleElement(document, createdByParser)); | 48 return adoptRef(new SVGStyleElement(document, createdByParser)); |
47 } | 49 } |
48 | 50 |
49 bool SVGStyleElement::disabled() const | 51 bool SVGStyleElement::disabled() const |
50 { | 52 { |
51 if (!m_sheet) | 53 if (!m_sheet) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 StyleElement::removedFromDocument(document(), this); | 144 StyleElement::removedFromDocument(document(), this); |
143 } | 145 } |
144 | 146 |
145 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) | 147 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
146 { | 148 { |
147 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); | 149 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); |
148 StyleElement::childrenChanged(this); | 150 StyleElement::childrenChanged(this); |
149 } | 151 } |
150 | 152 |
151 } | 153 } |
OLD | NEW |