diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc b/chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc index d3aff74144c..c2b61579bb6 100644 --- a/chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc +++ b/chromium/third_party/blink/renderer/core/html/media/html_audio_element.cc @@ -30,13 +30,13 @@ namespace blink { -using namespace HTMLNames; +using namespace html_names; HTMLAudioElement::HTMLAudioElement(Document& document) - : HTMLMediaElement(audioTag, document) {} + : HTMLMediaElement(kAudioTag, document) {} HTMLAudioElement* HTMLAudioElement::Create(Document& document) { - HTMLAudioElement* audio = new HTMLAudioElement(document); + HTMLAudioElement* audio = MakeGarbageCollected<HTMLAudioElement>(document); audio->EnsureUserAgentShadowRoot(); audio->PauseIfNeeded(); return audio; @@ -45,7 +45,7 @@ HTMLAudioElement* HTMLAudioElement::Create(Document& document) { HTMLAudioElement* HTMLAudioElement::CreateForJSConstructor( Document& document, const AtomicString& src) { - HTMLAudioElement* audio = new HTMLAudioElement(document); + HTMLAudioElement* audio = MakeGarbageCollected<HTMLAudioElement>(document); audio->EnsureUserAgentShadowRoot(); audio->setPreload(AtomicString("auto")); if (!src.IsNull()) |