mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -389,8 +389,6 @@ pub struct EventRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for EventRunnable {
|
||||
fn name(&self) -> &'static str { "EventRunnable" }
|
||||
|
||||
fn handler(self: Box<EventRunnable>) {
|
||||
let target = self.target.root();
|
||||
let bubbles = self.bubbles;
|
||||
|
@ -406,8 +404,6 @@ pub struct SimpleEventRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for SimpleEventRunnable {
|
||||
fn name(&self) -> &'static str { "SimpleEventRunnable" }
|
||||
|
||||
fn handler(self: Box<SimpleEventRunnable>) {
|
||||
let target = self.target.root();
|
||||
target.fire_event(self.name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue