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

Side by Side Diff: Source/core/dom/ScriptLoader.h

Issue 19762002: [HTML Imports] Let script of imported document running. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made a test more robust. 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/dom/DocumentInit.cpp ('k') | Source/core/dom/ScriptLoader.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) 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 private: 75 private:
76 ScriptLoader(Element*, bool createdByParser, bool isEvaluated); 76 ScriptLoader(Element*, bool createdByParser, bool isEvaluated);
77 77
78 bool ignoresLoadRequest() const; 78 bool ignoresLoadRequest() const;
79 bool isScriptForEventSupported() const; 79 bool isScriptForEventSupported() const;
80 80
81 bool requestScript(const String& sourceUrl); 81 bool requestScript(const String& sourceUrl);
82 void stopLoadRequest(); 82 void stopLoadRequest();
83 83
84 ScriptLoaderClient* client() const; 84 ScriptLoaderClient* client() const;
85 Document* executingDocument() const;
85 86
86 // ResourceClient 87 // ResourceClient
87 virtual void notifyFinished(Resource*) OVERRIDE; 88 virtual void notifyFinished(Resource*) OVERRIDE;
88 89
89 Element* m_element; 90 Element* m_element;
90 ResourcePtr<CachedScript> m_cachedScript; 91 ResourcePtr<CachedScript> m_cachedScript;
91 WTF::OrdinalNumber m_startLineNumber; 92 WTF::OrdinalNumber m_startLineNumber;
92 bool m_parserInserted : 1; 93 bool m_parserInserted : 1;
93 bool m_isExternalScript : 1; 94 bool m_isExternalScript : 1;
94 bool m_alreadyStarted : 1; 95 bool m_alreadyStarted : 1;
(...skipping 11 matching lines...) Expand all
106 107
107 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea tedByParser, bool isEvaluated) 108 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea tedByParser, bool isEvaluated)
108 { 109 {
109 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated)); 110 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated));
110 } 111 }
111 112
112 } 113 }
113 114
114 115
115 #endif 116 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentInit.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698