diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-03 16:42:46 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-03 16:42:46 -0700 |
commit | f9d9cd3aaed3326e8935f710f800288a50156c71 (patch) | |
tree | bdb10d2e66d82a73a46cdc53d62febaaec24da4d /components/script/dom/virtualmethods.rs | |
parent | 2c69278067a23703b251a69c875bee49449c6bfc (diff) | |
parent | f16c05423c75fc166db9790d91ac06d7a105ca03 (diff) | |
download | servo-f9d9cd3aaed3326e8935f710f800288a50156c71.tar.gz servo-f9d9cd3aaed3326e8935f710f800288a50156c71.zip |
Auto merge of #8454 - jdm:media, r=KiChjang
Implement basic <media> infrastructure
This gets us to the point where we can start playing with actually integrating rust-media to process the data received by the network request, as currently it's just ignored.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8454)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index e3def582ae4..cb62947c207 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -29,6 +29,7 @@ use dom::htmlimageelement::HTMLImageElement; use dom::htmlinputelement::HTMLInputElement; use dom::htmllabelelement::HTMLLabelElement; use dom::htmllinkelement::HTMLLinkElement; +use dom::htmlmediaelement::HTMLMediaElement; use dom::htmlmetaelement::HTMLMetaElement; use dom::htmlobjectelement::HTMLObjectElement; use dom::htmloptgroupelement::HTMLOptGroupElement; @@ -181,6 +182,9 @@ pub fn vtable_for(node: &Node) -> &VirtualMethods { NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLLinkElement)) => { node.downcast::<HTMLLinkElement>().unwrap() as &VirtualMethods } + NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLMediaElement(_))) => { + node.downcast::<HTMLMediaElement>().unwrap() as &VirtualMethods + } NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLMetaElement)) => { node.downcast::<HTMLMetaElement>().unwrap() as &VirtualMethods } |