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 |
55 DECLARE_VIRTUAL_TRACE(); | 60 DECLARE_VIRTUAL_TRACE(); |
56 | 61 |
57 private: | 62 private: |
58 HTMLScriptElement(Document&, | 63 HTMLScriptElement(Document&, |
59 bool wasInsertedByParser, | 64 bool wasInsertedByParser, |
60 bool alreadyStarted, | 65 bool alreadyStarted, |
61 bool createdDuringDocumentWrite); | 66 bool createdDuringDocumentWrite); |
62 | 67 |
63 void parseAttribute(const AttributeModificationParams&) override; | 68 void parseAttribute(const AttributeModificationParams&) override; |
64 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 69 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
(...skipping 13 matching lines...) Expand all Loading... |
78 String eventAttributeValue() const override; | 83 String eventAttributeValue() const override; |
79 bool asyncAttributeValue() const override; | 84 bool asyncAttributeValue() const override; |
80 bool deferAttributeValue() const override; | 85 bool deferAttributeValue() const override; |
81 bool hasSourceAttribute() const override; | 86 bool hasSourceAttribute() const override; |
82 | 87 |
83 void dispatchLoadEvent() override; | 88 void dispatchLoadEvent() override; |
84 | 89 |
85 Element* cloneElementWithoutAttributesAndChildren() override; | 90 Element* cloneElementWithoutAttributesAndChildren() override; |
86 | 91 |
87 Member<ScriptLoader> m_loader; | 92 Member<ScriptLoader> m_loader; |
| 93 AtomicString m_nonce; |
88 }; | 94 }; |
89 | 95 |
90 } // namespace blink | 96 } // namespace blink |
91 | 97 |
92 #endif // HTMLScriptElement_h | 98 #endif // HTMLScriptElement_h |
OLD | NEW |