diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-07-23 05:00:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 05:00:01 -0400 |
commit | fdbb317d7a241928d08e40dfd5b0ae3003ecba51 (patch) | |
tree | 5417885b98e2fd30f33655db80d50c5cc950c7c7 /components/script/dom/audiotrack.rs | |
parent | e2903bcebf2f201ffa63dd4b867627bd7dd0e68e (diff) | |
parent | dc1121949619c4d04be001220059d9b5f0e70e8e (diff) | |
download | servo-fdbb317d7a241928d08e40dfd5b0ae3003ecba51.tar.gz servo-fdbb317d7a241928d08e40dfd5b0ae3003ecba51.zip |
Auto merge of #23774 - sreeise:media_fragment_parser, r=ferjm
Media fragment parser
<!-- Please describe your changes on the following line: -->
Media fragment parser for audio and video.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22366 (GitHub issue number if applicable)
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23774)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/audiotrack.rs')
-rw-r--r-- | components/script/dom/audiotrack.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/audiotrack.rs b/components/script/dom/audiotrack.rs index 9233b1d9c93..6a43eed64b2 100644 --- a/components/script/dom/audiotrack.rs +++ b/components/script/dom/audiotrack.rs @@ -55,6 +55,10 @@ impl AudioTrack { self.id.clone() } + pub fn kind(&self) -> DOMString { + self.kind.clone() + } + pub fn enabled(&self) -> bool { self.enabled.get() } @@ -72,7 +76,7 @@ impl AudioTrackMethods for AudioTrack { // https://html.spec.whatwg.org/multipage/#dom-audiotrack-kind fn Kind(&self) -> DOMString { - self.kind.clone() + self.kind() } // https://html.spec.whatwg.org/multipage/#dom-audiotrack-label |