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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 bool wasCreatedDuringDocumentWrite() { return m_createdDuringDocumentWrite; } | 110 bool wasCreatedDuringDocumentWrite() { return m_createdDuringDocumentWrite; } |
111 | 111 |
112 bool disallowedFetchForDocWrittenScript() { | 112 bool disallowedFetchForDocWrittenScript() { |
113 return m_documentWriteIntervention == | 113 return m_documentWriteIntervention == |
114 DocumentWriteIntervention::DoNotFetchDocWrittenScript; | 114 DocumentWriteIntervention::DoNotFetchDocWrittenScript; |
115 } | 115 } |
116 void setFetchDocWrittenScriptDeferIdle(); | 116 void setFetchDocWrittenScriptDeferIdle(); |
117 | 117 |
| 118 #if DCHECK_IS_ON() |
| 119 bool isExternalScript() const { return m_isExternalScript; } |
| 120 #endif |
| 121 |
118 protected: | 122 protected: |
119 ScriptLoader(Element*, | 123 ScriptLoader(Element*, |
120 bool createdByParser, | 124 bool createdByParser, |
121 bool isEvaluated, | 125 bool isEvaluated, |
122 bool createdDuringDocumentWrite); | 126 bool createdDuringDocumentWrite); |
123 | 127 |
124 private: | 128 private: |
125 bool ignoresLoadRequest() const; | 129 bool ignoresLoadRequest() const; |
126 bool isScriptForEventSupported() const; | 130 bool isScriptForEventSupported() const; |
127 void logScriptMIMEType(LocalFrame*, ScriptResource*, const String&); | 131 void logScriptMIMEType(LocalFrame*, ScriptResource*, const String&); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 DocumentWriteIntervention m_documentWriteIntervention; | 199 DocumentWriteIntervention m_documentWriteIntervention; |
196 | 200 |
197 Member<PendingScript> m_pendingScript; | 201 Member<PendingScript> m_pendingScript; |
198 }; | 202 }; |
199 | 203 |
200 ScriptLoader* toScriptLoaderIfPossible(Element*); | 204 ScriptLoader* toScriptLoaderIfPossible(Element*); |
201 | 205 |
202 } // namespace blink | 206 } // namespace blink |
203 | 207 |
204 #endif // ScriptLoader_h | 208 #endif // ScriptLoader_h |
OLD | NEW |