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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 2436793002: Simplify SVGAnimated* initialization (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann
3 * <zimmermann@kde.org> 3 * <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 using namespace SVGNames; 60 using namespace SVGNames;
61 61
62 SVGElement::SVGElement(const QualifiedName& tagName, 62 SVGElement::SVGElement(const QualifiedName& tagName,
63 Document& document, 63 Document& document,
64 ConstructionType constructionType) 64 ConstructionType constructionType)
65 : Element(tagName, &document, constructionType), 65 : Element(tagName, &document, constructionType),
66 #if ENABLE(ASSERT) 66 #if ENABLE(ASSERT)
67 m_inRelativeLengthClientsInvalidation(false), 67 m_inRelativeLengthClientsInvalidation(false),
68 #endif 68 #endif
69 m_SVGRareData(nullptr), 69 m_SVGRareData(nullptr),
70 m_className(SVGAnimatedString::create(this, 70 m_className(SVGAnimatedString::create(this, HTMLNames::classAttr)) {
71 HTMLNames::classAttr,
72 SVGString::create())) {
73 addToPropertyMap(m_className); 71 addToPropertyMap(m_className);
74 setHasCustomStyleCallbacks(); 72 setHasCustomStyleCallbacks();
75 } 73 }
76 74
77 SVGElement::~SVGElement() { 75 SVGElement::~SVGElement() {
78 ASSERT(isConnected() || !hasRelativeLengths()); 76 ASSERT(isConnected() || !hasRelativeLengths());
79 } 77 }
80 78
81 void SVGElement::detachLayoutTree(const AttachContext& context) { 79 void SVGElement::detachLayoutTree(const AttachContext& context) {
82 Element::detachLayoutTree(context); 80 Element::detachLayoutTree(context);
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 visitor->trace(m_className); 1226 visitor->trace(m_className);
1229 Element::trace(visitor); 1227 Element::trace(visitor);
1230 } 1228 }
1231 1229
1232 const AtomicString& SVGElement::eventParameterName() { 1230 const AtomicString& SVGElement::eventParameterName() {
1233 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); 1231 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt"));
1234 return evtString; 1232 return evtString;
1235 } 1233 }
1236 1234
1237 } // namespace blink 1235 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698