OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
5 * reserved. | 5 * reserved. |
6 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 6 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 String text() { return textFromChildren(); } | 45 String text() { return textFromChildren(); } |
46 void setText(const String&); | 46 void setText(const String&); |
47 | 47 |
48 KURL src() const; | 48 KURL src() const; |
49 | 49 |
50 void setAsync(bool); | 50 void setAsync(bool); |
51 bool async() const; | 51 bool async() const; |
52 | 52 |
53 ScriptLoader* loader() const { return m_loader.get(); } | 53 ScriptLoader* loader() const { return m_loader.get(); } |
54 | 54 |
55 // ScriptLoaderClient | |
56 AtomicString nonce() const override { return m_nonce; } | |
57 void setNonce(const String& nonce) override { m_nonce = AtomicString(nonce); } | |
58 void clearNonce() override { m_nonce = emptyAtom; } | |
59 | |
60 DECLARE_VIRTUAL_TRACE(); | 55 DECLARE_VIRTUAL_TRACE(); |
61 | 56 |
62 private: | 57 private: |
63 HTMLScriptElement(Document&, | 58 HTMLScriptElement(Document&, |
64 bool wasInsertedByParser, | 59 bool wasInsertedByParser, |
65 bool alreadyStarted, | 60 bool alreadyStarted, |
66 bool createdDuringDocumentWrite); | 61 bool createdDuringDocumentWrite); |
67 | 62 |
68 void parseAttribute(const AttributeModificationParams&) override; | 63 void parseAttribute(const AttributeModificationParams&) override; |
69 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
(...skipping 13 matching lines...) Expand all Loading... |
83 String eventAttributeValue() const override; | 78 String eventAttributeValue() const override; |
84 bool asyncAttributeValue() const override; | 79 bool asyncAttributeValue() const override; |
85 bool deferAttributeValue() const override; | 80 bool deferAttributeValue() const override; |
86 bool hasSourceAttribute() const override; | 81 bool hasSourceAttribute() const override; |
87 | 82 |
88 void dispatchLoadEvent() override; | 83 void dispatchLoadEvent() override; |
89 | 84 |
90 Element* cloneElementWithoutAttributesAndChildren() override; | 85 Element* cloneElementWithoutAttributesAndChildren() override; |
91 | 86 |
92 Member<ScriptLoader> m_loader; | 87 Member<ScriptLoader> m_loader; |
93 AtomicString m_nonce; | |
94 }; | 88 }; |
95 | 89 |
96 } // namespace blink | 90 } // namespace blink |
97 | 91 |
98 #endif // HTMLScriptElement_h | 92 #endif // HTMLScriptElement_h |
OLD | NEW |