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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 ~ScriptLoader() override; | 51 ~ScriptLoader() override; |
52 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
53 | 53 |
54 enum LegacyTypeSupport { | 54 enum LegacyTypeSupport { |
55 kDisallowLegacyTypeInTypeAttribute, | 55 kDisallowLegacyTypeInTypeAttribute, |
56 kAllowLegacyTypeInTypeAttribute | 56 kAllowLegacyTypeInTypeAttribute |
57 }; | 57 }; |
58 static bool IsValidScriptTypeAndLanguage( | 58 static bool IsValidScriptTypeAndLanguage( |
59 const String& type_attribute_value, | 59 const String& type_attribute_value, |
60 const String& language_attribute_value, | 60 const String& language_attribute_value, |
| 61 bool nomodule, |
61 LegacyTypeSupport support_legacy_types); | 62 LegacyTypeSupport support_legacy_types); |
62 | 63 |
63 // https://html.spec.whatwg.org/#prepare-a-script | 64 // https://html.spec.whatwg.org/#prepare-a-script |
64 bool PrepareScript(const TextPosition& script_start_position = | 65 bool PrepareScript(const TextPosition& script_start_position = |
65 TextPosition::MinimumPosition(), | 66 TextPosition::MinimumPosition(), |
66 LegacyTypeSupport = kDisallowLegacyTypeInTypeAttribute); | 67 LegacyTypeSupport = kDisallowLegacyTypeInTypeAttribute); |
67 | 68 |
68 String ScriptContent() const; | 69 String ScriptContent() const; |
69 | 70 |
70 // Creates a PendingScript for external script whose fetch is started in | 71 // Creates a PendingScript for external script whose fetch is started in |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 }; | 194 }; |
194 | 195 |
195 DocumentWriteIntervention document_write_intervention_; | 196 DocumentWriteIntervention document_write_intervention_; |
196 | 197 |
197 Member<PendingScript> pending_script_; | 198 Member<PendingScript> pending_script_; |
198 }; | 199 }; |
199 | 200 |
200 } // namespace blink | 201 } // namespace blink |
201 | 202 |
202 #endif // ScriptLoader_h | 203 #endif // ScriptLoader_h |
OLD | NEW |