| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |