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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 class ScriptResource; | 31 class ScriptResource; |
32 class ContainerNode; | 32 class ContainerNode; |
33 class Element; | 33 class Element; |
34 class ScriptLoaderClient; | 34 class ScriptLoaderClient; |
35 class ScriptSourceCode; | 35 class ScriptSourceCode; |
36 | 36 |
37 | 37 |
38 class ScriptLoader : private ResourceClient { | 38 class ScriptLoader FINAL : private ResourceClient { |
39 public: | 39 public: |
40 static PassOwnPtr<ScriptLoader> create(Element*, bool createdByParser, bool
isEvaluated); | 40 static PassOwnPtr<ScriptLoader> create(Element*, bool createdByParser, bool
isEvaluated); |
41 virtual ~ScriptLoader(); | 41 virtual ~ScriptLoader(); |
42 | 42 |
43 Element* element() const { return m_element; } | 43 Element* element() const { return m_element; } |
44 | 44 |
45 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI
nTypeAttribute }; | 45 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI
nTypeAttribute }; |
46 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m
inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); | 46 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m
inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); |
47 | 47 |
48 String scriptCharset() const { return m_characterEncoding; } | 48 String scriptCharset() const { return m_characterEncoding; } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea
tedByParser, bool isEvaluated) | 115 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea
tedByParser, bool isEvaluated) |
116 { | 116 { |
117 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated)); | 117 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated)); |
118 } | 118 } |
119 | 119 |
120 } | 120 } |
121 | 121 |
122 | 122 |
123 #endif | 123 #endif |
OLD | NEW |