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

Side by Side Diff: Source/core/svg/SVGScriptElement.cpp

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | 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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 28 matching lines...) Expand all
39 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGScriptElement) 39 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGScriptElement)
40 END_REGISTER_ANIMATED_PROPERTIES 40 END_REGISTER_ANIMATED_PROPERTIES
41 41
42 inline SVGScriptElement::SVGScriptElement(Document& document, bool wasInsertedBy Parser, bool alreadyStarted) 42 inline SVGScriptElement::SVGScriptElement(Document& document, bool wasInsertedBy Parser, bool alreadyStarted)
43 : SVGElement(SVGNames::scriptTag, document) 43 : SVGElement(SVGNames::scriptTag, document)
44 , SVGURIReference(this) 44 , SVGURIReference(this)
45 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) 45 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired)
46 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) 46 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted))
47 { 47 {
48 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
49 registerAnimatedPropertiesForSVGScriptElement();
50 } 49 }
51 50
52 PassRefPtr<SVGScriptElement> SVGScriptElement::create(Document& document, bool i nsertedByParser) 51 PassRefPtr<SVGScriptElement> SVGScriptElement::create(Document& document, bool i nsertedByParser)
53 { 52 {
54 return adoptRef(new SVGScriptElement(document, insertedByParser, false)); 53 return adoptRef(new SVGScriptElement(document, insertedByParser, false));
55 } 54 }
56 55
57 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) 56 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName)
58 { 57 {
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 58 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const 202 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const
204 { 203 {
205 if (name == SVGNames::typeAttr) 204 if (name == SVGNames::typeAttr)
206 return false; 205 return false;
207 206
208 return SVGElement::isAnimatableAttribute(name); 207 return SVGElement::isAnimatableAttribute(name);
209 } 208 }
210 #endif 209 #endif
211 210
212 } 211 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698