Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: Source/WebCore/svg/SVGStyleElement.cpp

Issue 7694026: Merge 93227 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/html/HTMLStyleElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
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 { 40 {
41 ASSERT(hasTagName(SVGNames::styleTag)); 41 ASSERT(hasTagName(SVGNames::styleTag));
42 } 42 }
43 43
44 SVGStyleElement::~SVGStyleElement() 44 SVGStyleElement::~SVGStyleElement()
45 { 45 {
46 if (m_sheet) 46 StyleElement::clearDocumentData(document(), this);
47 m_sheet->clearOwnerNode();
48 } 47 }
49 48
50 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName , Document* document, bool createdByParser) 49 PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName , Document* document, bool createdByParser)
51 { 50 {
52 return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); 51 return adoptRef(new SVGStyleElement(tagName, document, createdByParser));
53 } 52 }
54 53
55 const AtomicString& SVGStyleElement::type() const 54 const AtomicString& SVGStyleElement::type() const
56 { 55 {
57 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css")); 56 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css"));
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 134
136 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 135 void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
137 { 136 {
138 StyleElement::childrenChanged(this); 137 StyleElement::childrenChanged(this);
139 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 138 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta);
140 } 139 }
141 140
142 } 141 }
143 142
144 #endif // ENABLE(SVG) 143 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLStyleElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698