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

Unified Diff: Source/core/html/HTMLScriptElement.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/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLScriptElement.h
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h
index 1633c0dac8739403356dbd7949f2dc4497442d5b..704b77e7e33cd7c34f38a2d4006f48e4897c56a1 100644
--- a/Source/core/html/HTMLScriptElement.h
+++ b/Source/core/html/HTMLScriptElement.h
@@ -24,12 +24,14 @@
#ifndef HTMLScriptElement_h
#define HTMLScriptElement_h
-#include "core/dom/ScriptElement.h"
+#include "core/dom/ScriptLoaderClient.h"
#include "core/html/HTMLElement.h"
namespace WebCore {
-class HTMLScriptElement FINAL : public HTMLElement, public ScriptElementClient {
+class ScriptLoader;
+
+class HTMLScriptElement FINAL : public HTMLElement, public ScriptLoaderClient {
public:
static PassRefPtr<HTMLScriptElement> create(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted = false);
@@ -41,7 +43,7 @@ public:
void setAsync(bool);
bool async() const;
- ScriptElement* scriptElement() const { return m_scriptElement.get(); }
+ ScriptLoader* loader() const { return m_loader.get(); }
private:
HTMLScriptElement(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted);
@@ -68,7 +70,7 @@ private:
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren();
- OwnPtr<ScriptElement> m_scriptElement;
+ OwnPtr<ScriptLoader> m_loader;
};
inline HTMLScriptElement* toHTMLScriptElement(Node* node)
« no previous file with comments | « Source/core/html/HTMLOptionElement.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698