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

Unified Diff: Source/core/svg/SVGScriptElement.h

Issue 18261015: Rename ScriptElement to ScriptLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGScriptElement.h
diff --git a/Source/core/svg/SVGScriptElement.h b/Source/core/svg/SVGScriptElement.h
index b006555b8e7813627bb1e223fed3f656e573337a..667725cfe9a7a1986c1bde56c6775a73e18828ca 100644
--- a/Source/core/svg/SVGScriptElement.h
+++ b/Source/core/svg/SVGScriptElement.h
@@ -22,7 +22,7 @@
#define SVGScriptElement_h
#include "SVGNames.h"
-#include "core/dom/ScriptElement.h"
+#include "core/dom/ScriptLoaderClient.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedString.h"
#include "core/svg/SVGElement.h"
@@ -31,18 +31,20 @@
namespace WebCore {
+class ScriptLoader;
+
class SVGScriptElement FINAL
: public SVGElement
, public SVGURIReference
, public SVGExternalResourcesRequired
- , public ScriptElementClient {
+ , public ScriptLoaderClient {
public:
static PassRefPtr<SVGScriptElement> create(const QualifiedName&, Document*, bool wasInsertedByParser);
String type() const;
void setType(const String&);
- ScriptElement* scriptElement() const { return m_scriptElement.get(); }
+ ScriptLoader* loader() const { return m_loader.get(); }
private:
SVGScriptElement(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted);
@@ -87,7 +89,7 @@ private:
String m_type;
Timer<SVGElement> m_svgLoadEventTimer;
- OwnPtr<ScriptElement> m_scriptElement;
+ OwnPtr<ScriptLoader> m_loader;
};
inline SVGScriptElement* toSVGScriptElement(Node* node)
« no previous file with comments | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698