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

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

Issue 21498002: Introduce a SVGUnknownElement class for unknown SVG elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment for SVGUnknownElement Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual String languageAttributeValue() const; 68 virtual String languageAttributeValue() const;
69 virtual String forAttributeValue() const; 69 virtual String forAttributeValue() const;
70 virtual String eventAttributeValue() const; 70 virtual String eventAttributeValue() const;
71 virtual bool asyncAttributeValue() const; 71 virtual bool asyncAttributeValue() const;
72 virtual bool deferAttributeValue() const; 72 virtual bool deferAttributeValue() const;
73 virtual bool hasSourceAttribute() const; 73 virtual bool hasSourceAttribute() const;
74 74
75 virtual void dispatchLoadEvent() { SVGExternalResourcesRequired::dispatchLoa dEvent(this); } 75 virtual void dispatchLoadEvent() { SVGExternalResourcesRequired::dispatchLoa dEvent(this); }
76 76
77 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); 77 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
78 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return false; }
78 79
79 // SVGExternalResourcesRequired 80 // SVGExternalResourcesRequired
80 virtual void setHaveFiredLoadEvent(bool) OVERRIDE; 81 virtual void setHaveFiredLoadEvent(bool) OVERRIDE;
81 virtual bool isParserInserted() const OVERRIDE; 82 virtual bool isParserInserted() const OVERRIDE;
82 virtual bool haveFiredLoadEvent() const OVERRIDE; 83 virtual bool haveFiredLoadEvent() const OVERRIDE;
83 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE; 84 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE;
84 85
85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement) 86 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGScriptElement)
86 DECLARE_ANIMATED_STRING(Href, href) 87 DECLARE_ANIMATED_STRING(Href, href)
87 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 88 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
88 END_DECLARE_ANIMATED_PROPERTIES 89 END_DECLARE_ANIMATED_PROPERTIES
89 90
90 String m_type; 91 String m_type;
91 Timer<SVGElement> m_svgLoadEventTimer; 92 Timer<SVGElement> m_svgLoadEventTimer;
92 OwnPtr<ScriptLoader> m_loader; 93 OwnPtr<ScriptLoader> m_loader;
93 }; 94 };
94 95
95 inline SVGScriptElement* toSVGScriptElement(Node* node) 96 inline SVGScriptElement* toSVGScriptElement(Node* node)
96 { 97 {
97 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptT ag)); 98 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptT ag));
98 return static_cast<SVGScriptElement*>(node); 99 return static_cast<SVGScriptElement*>(node);
99 } 100 }
100 101
101 } // namespace WebCore 102 } // namespace WebCore
102 103
103 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698