mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
move name implementation as default implementation to the trait and remove overrides.
This commit is contained in:
parent
a3df0cf4de
commit
99e4504f85
13 changed files with 1 additions and 45 deletions
|
@ -3030,8 +3030,6 @@ impl ElementPerformFullscreenEnter {
|
|||
}
|
||||
|
||||
impl Runnable for ElementPerformFullscreenEnter {
|
||||
fn name(&self) -> &'static str { "ElementPerformFullscreenEnter" }
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
fn handler(self: Box<ElementPerformFullscreenEnter>) {
|
||||
let element = self.element.root();
|
||||
|
@ -3085,8 +3083,6 @@ impl ElementPerformFullscreenExit {
|
|||
}
|
||||
|
||||
impl Runnable for ElementPerformFullscreenExit {
|
||||
fn name(&self) -> &'static str { "ElementPerformFullscreenExit" }
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
fn handler(self: Box<ElementPerformFullscreenExit>) {
|
||||
let element = self.element.root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue