Anchor controls inside bottom of video element

This commit is contained in:
Fernando Jiménez Moreno 2019-05-06 16:48:28 +02:00
parent 8a4d54af0b
commit 9496dff529
3 changed files with 27 additions and 17 deletions

View file

@ -1725,9 +1725,7 @@ impl HTMLMediaElement {
}
fn render_controls(&self) {
println!("render_controls");
// XXX cannot render controls while parsing.
// XXX render controls as a top layer.
// XXX check that controls are not already rendered.
let element = self.htmlelement.upcast::<Element>();
if let Ok(shadow_root) = element.attach_shadow(IsUserAgentWidget::Yes) {