diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc b/chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc index b3b1e5f88d0..0b69f3a4cec 100644 --- a/chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc +++ b/chromium/third_party/blink/renderer/core/svg/svg_animated_string.cc @@ -4,7 +4,6 @@ #include "third_party/blink/renderer/core/svg/svg_animated_string.h" -#include "third_party/blink/renderer/bindings/core/v8/string_or_trusted_script_url.h" #include "third_party/blink/renderer/bindings/core/v8/v8_union_string_trustedscripturl.h" #include "third_party/blink/renderer/core/svg/svg_element.h" #include "third_party/blink/renderer/core/trustedtypes/trusted_script_url.h" @@ -12,8 +11,6 @@ namespace blink { -#if defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) - V8UnionStringOrTrustedScriptURL* SVGAnimatedString::baseVal() { return MakeGarbageCollected<V8UnionStringOrTrustedScriptURL>( SVGAnimatedProperty<SVGString>::baseVal()); @@ -42,36 +39,6 @@ void SVGAnimatedString::setBaseVal(const V8UnionStringOrTrustedScriptURL* value, SVGAnimatedProperty<SVGString>::setBaseVal(string, exception_state); } -#else // defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) - -void SVGAnimatedString::setBaseVal( - const StringOrTrustedScriptURL& string_or_trusted_script_url, - ExceptionState& exception_state) { - String value; - // See: - // https://w3c.github.io/webappsec-trusted-types/dist/spec/#integration-with-svg - if (string_or_trusted_script_url.IsTrustedScriptURL()) { - value = string_or_trusted_script_url.GetAsTrustedScriptURL()->toString(); - } else { - value = string_or_trusted_script_url.GetAsString(); - if (ContextElement()->IsScriptElement()) { - value = TrustedTypesCheckForScriptURL( - value, ContextElement()->GetExecutionContext(), exception_state); - if (exception_state.HadException()) - return; - } - } - SVGAnimatedProperty<SVGString>::setBaseVal(value, exception_state); -} - -void SVGAnimatedString::baseVal( - StringOrTrustedScriptURL& string_or_trusted_script_url) { - string_or_trusted_script_url.SetString( - SVGAnimatedProperty<SVGString>::baseVal()); -} - -#endif // defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) - String SVGAnimatedString::animVal() { return SVGAnimatedProperty<SVGString>::animVal(); } |