mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
fixes dereferencing on an immutable reference (#31864)
This commit is contained in:
parent
585e0d69cd
commit
f7669b5238
32 changed files with 76 additions and 77 deletions
|
@ -1079,7 +1079,7 @@ impl Document {
|
|||
return;
|
||||
}
|
||||
self.request_focus(
|
||||
self.GetBody().as_ref().map(|e| &*e.upcast()),
|
||||
self.GetBody().as_ref().map(|e| e.upcast()),
|
||||
FocusType::Element,
|
||||
)
|
||||
}
|
||||
|
@ -1837,7 +1837,7 @@ impl Document {
|
|||
|
||||
pub fn ime_dismissed(&self) {
|
||||
self.request_focus(
|
||||
self.GetBody().as_ref().map(|e| &*e.upcast()),
|
||||
self.GetBody().as_ref().map(|e| e.upcast()),
|
||||
FocusType::Element,
|
||||
)
|
||||
}
|
||||
|
@ -5264,7 +5264,7 @@ impl DocumentMethods for Document {
|
|||
// media element matching the given id.
|
||||
fn ServoGetMediaControls(&self, id: DOMString) -> Fallible<DomRoot<ShadowRoot>> {
|
||||
match self.media_controls.borrow().get(&*id) {
|
||||
Some(m) => Ok(DomRoot::from_ref(&*m)),
|
||||
Some(m) => Ok(DomRoot::from_ref(m)),
|
||||
None => Err(Error::InvalidAccess),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue