| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 enum LegacyTypeSupport { | 58 enum LegacyTypeSupport { |
| 59 kDisallowLegacyTypeInTypeAttribute, | 59 kDisallowLegacyTypeInTypeAttribute, |
| 60 kAllowLegacyTypeInTypeAttribute | 60 kAllowLegacyTypeInTypeAttribute |
| 61 }; | 61 }; |
| 62 static bool IsValidScriptTypeAndLanguage( | 62 static bool IsValidScriptTypeAndLanguage( |
| 63 const String& type_attribute_value, | 63 const String& type_attribute_value, |
| 64 const String& language_attribute_value, | 64 const String& language_attribute_value, |
| 65 LegacyTypeSupport support_legacy_types, | 65 LegacyTypeSupport support_legacy_types, |
| 66 ScriptType& out_script_type); | 66 ScriptType& out_script_type); |
| 67 | 67 |
| 68 static bool BlockForNoModule(ScriptType, bool nomodule); |
| 69 |
| 68 // https://html.spec.whatwg.org/#prepare-a-script | 70 // https://html.spec.whatwg.org/#prepare-a-script |
| 69 bool PrepareScript(const TextPosition& script_start_position = | 71 bool PrepareScript(const TextPosition& script_start_position = |
| 70 TextPosition::MinimumPosition(), | 72 TextPosition::MinimumPosition(), |
| 71 LegacyTypeSupport = kDisallowLegacyTypeInTypeAttribute); | 73 LegacyTypeSupport = kDisallowLegacyTypeInTypeAttribute); |
| 72 | 74 |
| 73 String ScriptContent() const; | 75 String ScriptContent() const; |
| 74 | 76 |
| 75 // Creates a PendingScript for external script whose fetch is started in | 77 // Creates a PendingScript for external script whose fetch is started in |
| 76 // FetchClassicScript(). | 78 // FetchClassicScript(). |
| 77 PendingScript* CreatePendingScript(); | 79 PendingScript* CreatePendingScript(); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 DocumentWriteIntervention document_write_intervention_; | 219 DocumentWriteIntervention document_write_intervention_; |
| 218 | 220 |
| 219 Member<PendingScript> pending_script_; | 221 Member<PendingScript> pending_script_; |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 } // namespace blink | 224 } // namespace blink |
| 223 | 225 |
| 224 #endif // ScriptLoader_h | 226 #endif // ScriptLoader_h |
| OLD | NEW |