Index: third_party/WebKit/Source/core/svg/SVGScriptElement.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGScriptElement.h b/third_party/WebKit/Source/core/svg/SVGScriptElement.h |
index f1679b5330c70943cf15d3fa5484cf228d3dff02..80cca755d33abd839338f4afa295213f1eb25829 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGScriptElement.h |
+++ b/third_party/WebKit/Source/core/svg/SVGScriptElement.h |
@@ -46,6 +46,8 @@ class SVGScriptElement final : public SVGElement, |
bool isAnimatableAttribute(const QualifiedName&) const override; |
#endif |
+ bool isScriptElement() const override { return true; } |
+ |
DECLARE_VIRTUAL_TRACE(); |
private: |
@@ -64,22 +66,27 @@ class SVGScriptElement final : public SVGElement, |
bool haveLoadedRequiredResources() override; |
+ // ScriptLoaderClient overrides: |
String sourceAttributeValue() const override; |
- String charsetAttributeValue() const override; |
String typeAttributeValue() const override; |
- String languageAttributeValue() const override; |
- String forAttributeValue() const override; |
- String eventAttributeValue() const override; |
- bool asyncAttributeValue() const override; |
- bool deferAttributeValue() const override; |
+ String textFromChildren() override; |
+ String textContent() const override; |
bool hasSourceAttribute() const override; |
- |
+ bool isConnected() const override; |
+ bool hasChildren() const override; |
+ bool isNonceableElement() const; |
+ bool allowInlineScriptForCSP(const AtomicString& nonce, |
+ const WTF::OrdinalNumber&, |
+ const String& scriptContent) override; |
+ AtomicString initiatorName() const override; |
+ Document& document() const override; |
void dispatchLoadEvent() override; |
+ void dispatchErrorEvent() override; |
+ void setScriptElementForBinding( |
+ HTMLScriptElementOrSVGScriptElement&) override; |
Element* cloneElementWithoutAttributesAndChildren() override; |
bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } |
- |
- Member<ScriptLoader> m_loader; |
}; |
} // namespace blink |