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

Unified Diff: Source/core/dom/ScriptLoader.h

Issue 229753004: Handle didMoveToNewDocument() for <script> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: Source/core/dom/ScriptLoader.h
diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h
index 83acaecfe4232ca1ae616b63374408bee8f075bd..ff8784ebd67484e2c23364bca22a7388ae832a37 100644
--- a/Source/core/dom/ScriptLoader.h
+++ b/Source/core/dom/ScriptLoader.h
@@ -30,6 +30,7 @@ namespace WebCore {
class ScriptResource;
class ContainerNode;
+class Document;
class Element;
class ScriptLoaderClient;
class ScriptSourceCode;
@@ -71,6 +72,7 @@ public:
void childrenChanged();
void handleSourceAttribute(const String& sourceUrl);
void handleAsyncAttribute();
+ void cancel(Document* contextDocument);
private:
ScriptLoader(Element*, bool createdByParser, bool isEvaluated);
@@ -86,6 +88,13 @@ private:
// ResourceClient
virtual void notifyFinished(Resource*) OVERRIDE;
+ enum FinishType {
+ FinishSuccessfully,
+ FinishWithErrorOrCancel
+ };
+
+ void finishLoading(Document* contextDocument, FinishType);
+
Element* m_element;
ResourcePtr<ScriptResource> m_resource;
WTF::OrdinalNumber m_startLineNumber;
« no previous file with comments | « LayoutTests/fast/dom/HTMLScriptElement/resources/should-not-run.js ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698