mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Return a reference in BrowserContext::frame_element()
This commit is contained in:
parent
1f31d5b856
commit
264e943597
3 changed files with 8 additions and 8 deletions
|
@ -52,8 +52,8 @@ impl BrowsingContext {
|
|||
self.active_document().window()
|
||||
}
|
||||
|
||||
pub fn frame_element(&self) -> Option<Root<Element>> {
|
||||
self.frame_element.as_ref().map(JS::root)
|
||||
pub fn frame_element(&self) -> Option<&Element> {
|
||||
self.frame_element.as_ref().map(|element| &**element)
|
||||
}
|
||||
|
||||
pub fn window_proxy(&self) -> *mut JSObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue