diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-07-31 15:50:41 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 12:35:23 +0000 |
commit | 7b2ffa587235a47d4094787d72f38102089f402a (patch) | |
tree | 30e82af9cbab08a7fa028bb18f4f2987a3f74dfa /chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc | |
parent | d94af01c90575348c4e81a418257f254b6f8d225 (diff) | |
download | qtwebengine-chromium-7b2ffa587235a47d4094787d72f38102089f402a.tar.gz |
BASELINE: Update Chromium to 76.0.3809.94
Change-Id: I321c3f5f929c105aec0f98c5091ef6108822e647
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc b/chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc index 422d87b3028..580ef9d1b13 100644 --- a/chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc +++ b/chromium/third_party/blink/renderer/core/html/media/media_remoting_interstitial.cc @@ -9,6 +9,7 @@ #include "third_party/blink/renderer/core/html/html_image_element.h" #include "third_party/blink/renderer/core/html/media/html_video_element.h" #include "third_party/blink/renderer/platform/bindings/exception_state.h" +#include "third_party/blink/renderer/platform/heap/heap.h" #include "third_party/blink/renderer/platform/text/platform_locale.h" namespace { @@ -34,20 +35,21 @@ MediaRemotingInterstitial::MediaRemotingInterstitial( background_image_ = MakeGarbageCollected<HTMLImageElement>(GetDocument()); background_image_->SetShadowPseudoId( AtomicString("-internal-media-interstitial-background-image")); - background_image_->SetSrc(videoElement.getAttribute(html_names::kPosterAttr)); + background_image_->setAttribute( + html_names::kSrcAttr, videoElement.getAttribute(html_names::kPosterAttr)); AppendChild(background_image_); - cast_icon_ = HTMLDivElement::Create(GetDocument()); + cast_icon_ = MakeGarbageCollected<HTMLDivElement>(GetDocument()); cast_icon_->SetShadowPseudoId( AtomicString("-internal-media-remoting-cast-icon")); AppendChild(cast_icon_); - cast_text_message_ = HTMLDivElement::Create(GetDocument()); + cast_text_message_ = MakeGarbageCollected<HTMLDivElement>(GetDocument()); cast_text_message_->SetShadowPseudoId( AtomicString("-internal-media-interstitial-message")); AppendChild(cast_text_message_); - toast_message_ = HTMLDivElement::Create(GetDocument()); + toast_message_ = MakeGarbageCollected<HTMLDivElement>(GetDocument()); toast_message_->SetShadowPseudoId( AtomicString("-internal-media-remoting-toast-message")); AppendChild(toast_message_); @@ -144,7 +146,8 @@ void MediaRemotingInterstitial::DidMoveToNewDocument(Document& old_document) { } void MediaRemotingInterstitial::OnPosterImageChanged() { - background_image_->SetSrc( + background_image_->setAttribute( + html_names::kSrcAttr, GetVideoElement().getAttribute(html_names::kPosterAttr)); } |