| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 Element* element() const { return m_element; } | 42 Element* element() const { return m_element; } |
| 43 | 43 |
| 44 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI
nTypeAttribute }; | 44 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI
nTypeAttribute }; |
| 45 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m
inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); | 45 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m
inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); |
| 46 | 46 |
| 47 String scriptCharset() const { return m_characterEncoding; } | 47 String scriptCharset() const { return m_characterEncoding; } |
| 48 String scriptContent() const; | 48 String scriptContent() const; |
| 49 void executeScript(const ScriptSourceCode&); | 49 void executeScript(const ScriptSourceCode&); |
| 50 void execute(CachedScript*); | 50 void execute(CachedScript*); |
| 51 | 51 |
| 52 static void prepareScriptCallback(Element*); |
| 53 |
| 52 // XML parser calls these | 54 // XML parser calls these |
| 53 virtual void dispatchLoadEvent() = 0; | 55 virtual void dispatchLoadEvent() = 0; |
| 54 void dispatchErrorEvent(); | 56 void dispatchErrorEvent(); |
| 55 bool isScriptTypeSupported(LegacyTypeSupport) const; | 57 bool isScriptTypeSupported(LegacyTypeSupport) const; |
| 56 | 58 |
| 57 bool haveFiredLoadEvent() const { return m_haveFiredLoad; } | 59 bool haveFiredLoadEvent() const { return m_haveFiredLoad; } |
| 58 bool willBeParserExecuted() const { return m_willBeParserExecuted; } | 60 bool willBeParserExecuted() const { return m_willBeParserExecuted; } |
| 59 bool readyToBeParserExecuted() const { return m_readyToBeParserExecuted; } | 61 bool readyToBeParserExecuted() const { return m_readyToBeParserExecuted; } |
| 60 bool willExecuteWhenDocumentFinishedParsing() const { return m_willExecuteWh
enDocumentFinishedParsing; } | 62 bool willExecuteWhenDocumentFinishedParsing() const { return m_willExecuteWh
enDocumentFinishedParsing; } |
| 61 CachedResourceHandle<CachedScript> cachedScript() { return m_cachedScript; } | 63 CachedResourceHandle<CachedScript> cachedScript() { return m_cachedScript; } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool m_requestUsesAccessControl : 1; | 108 bool m_requestUsesAccessControl : 1; |
| 107 String m_characterEncoding; | 109 String m_characterEncoding; |
| 108 String m_fallbackCharacterEncoding; | 110 String m_fallbackCharacterEncoding; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 ScriptElement* toScriptElementIfPossible(Element*); | 113 ScriptElement* toScriptElementIfPossible(Element*); |
| 112 | 114 |
| 113 } | 115 } |
| 114 | 116 |
| 115 #endif | 117 #endif |
| OLD | NEW |