mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Clean up the cast calls
This commit is contained in:
parent
13ea3ac413
commit
68014af78e
66 changed files with 412 additions and 718 deletions
|
@ -324,10 +324,7 @@ impl FileReader {
|
|||
let progressevent = ProgressEvent::new(global.r(),
|
||||
type_, EventBubbles::DoesNotBubble, EventCancelable::NotCancelable,
|
||||
total.is_some(), loaded, total.unwrap_or(0));
|
||||
|
||||
let target = self.upcast::<EventTarget>();
|
||||
let event = progressevent.upcast::<Event>();
|
||||
event.fire(target);
|
||||
progressevent.upcast::<Event>().fire(self.upcast());
|
||||
}
|
||||
|
||||
fn terminate_ongoing_reading(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue