| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 using namespace SVGNames; | 58 using namespace SVGNames; |
| 59 | 59 |
| 60 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) | 60 SVGElement::SVGElement(const QualifiedName& tagName, Document& document, Constru
ctionType constructionType) |
| 61 : Element(tagName, &document, constructionType) | 61 : Element(tagName, &document, constructionType) |
| 62 #if ENABLE(ASSERT) | 62 #if ENABLE(ASSERT) |
| 63 , m_inRelativeLengthClientsInvalidation(false) | 63 , m_inRelativeLengthClientsInvalidation(false) |
| 64 #endif | 64 #endif |
| 65 , m_SVGRareData(nullptr) | 65 , m_SVGRareData(nullptr) |
| 66 , m_className(SVGAnimatedString::create(this, HTMLNames::classAttr, SVGStrin
g::create())) | 66 , m_className(SVGAnimatedString::create(this, HTMLNames::classAttr, SVGStrin
g::create())) |
| 67 { | 67 { |
| 68 ScriptWrappable::init(this); | |
| 69 addToPropertyMap(m_className); | 68 addToPropertyMap(m_className); |
| 70 setHasCustomStyleCallbacks(); | 69 setHasCustomStyleCallbacks(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 SVGElement::~SVGElement() | 72 SVGElement::~SVGElement() |
| 74 { | 73 { |
| 75 ASSERT(inDocument() || !hasRelativeLengths()); | 74 ASSERT(inDocument() || !hasRelativeLengths()); |
| 76 | 75 |
| 77 // The below teardown is all handled by weak pointer processing in oilpan. | 76 // The below teardown is all handled by weak pointer processing in oilpan. |
| 78 #if !ENABLE(OILPAN) | 77 #if !ENABLE(OILPAN) |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 Element::trace(visitor); | 1184 Element::trace(visitor); |
| 1186 } | 1185 } |
| 1187 | 1186 |
| 1188 const AtomicString& SVGElement::eventParameterName() | 1187 const AtomicString& SVGElement::eventParameterName() |
| 1189 { | 1188 { |
| 1190 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1189 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
| 1191 return evtString; | 1190 return evtString; |
| 1192 } | 1191 } |
| 1193 | 1192 |
| 1194 } // namespace blink | 1193 } // namespace blink |
| OLD | NEW |