mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add trusted setter to Event
This commit is contained in:
parent
e2376a64bf
commit
c3fdd60adc
2 changed files with 12 additions and 1 deletions
|
@ -245,3 +245,13 @@ impl Reflectable for Event {
|
|||
&self.reflector_
|
||||
}
|
||||
}
|
||||
|
||||
pub trait EventHelpers {
|
||||
fn set_trusted(self, trusted: bool);
|
||||
}
|
||||
|
||||
impl<'a> EventHelpers for JSRef<'a, Event> {
|
||||
fn set_trusted(self, trusted: bool) {
|
||||
self.trusted.set(trusted);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue