mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove most RootedReference uses
We can replace all uses of RootedReference for Option<T> by Option::deref calls.
This commit is contained in:
parent
7bdfad92a5
commit
5fe5e5d6de
34 changed files with 186 additions and 185 deletions
|
@ -8,7 +8,7 @@ use crate::dom::bindings::codegen::Bindings::UIEventBinding::UIEventMethods;
|
|||
use crate::dom::bindings::error::Fallible;
|
||||
use crate::dom::bindings::inheritance::Castable;
|
||||
use crate::dom::bindings::reflector::reflect_dom_object;
|
||||
use crate::dom::bindings::root::{DomRoot, MutNullableDom, RootedReference};
|
||||
use crate::dom::bindings::root::{DomRoot, MutNullableDom};
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
use crate::dom::event::{Event, EventBubbles, EventCancelable};
|
||||
use crate::dom::eventtarget::EventTarget;
|
||||
|
@ -115,7 +115,7 @@ impl MouseEvent {
|
|||
type_,
|
||||
bubbles,
|
||||
cancelable,
|
||||
init.parent.parent.view.r(),
|
||||
init.parent.parent.view.deref(),
|
||||
init.parent.parent.detail,
|
||||
init.screenX,
|
||||
init.screenY,
|
||||
|
@ -126,7 +126,7 @@ impl MouseEvent {
|
|||
init.parent.shiftKey,
|
||||
init.parent.metaKey,
|
||||
init.button,
|
||||
init.relatedTarget.r(),
|
||||
init.relatedTarget.deref(),
|
||||
None,
|
||||
);
|
||||
Ok(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue