mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Make LayoutHTMLMediaElementHelpers methods take self
This commit is contained in:
parent
e590251e5f
commit
f794feb6f4
1 changed files with 2 additions and 2 deletions
|
@ -2444,12 +2444,12 @@ impl VirtualMethods for HTMLMediaElement {
|
|||
}
|
||||
|
||||
pub trait LayoutHTMLMediaElementHelpers {
|
||||
fn data(&self) -> HTMLMediaData;
|
||||
fn data(self) -> HTMLMediaData;
|
||||
}
|
||||
|
||||
impl LayoutHTMLMediaElementHelpers for LayoutDom<'_, HTMLMediaElement> {
|
||||
#[allow(unsafe_code)]
|
||||
fn data(&self) -> HTMLMediaData {
|
||||
fn data(self) -> HTMLMediaData {
|
||||
let media = unsafe { &*self.unsafe_get() };
|
||||
HTMLMediaData {
|
||||
current_frame: media.video_renderer.lock().unwrap().current_frame.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue