mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cleanup Window, XHR
This commit is contained in:
parent
ac1b7a3896
commit
5c4f91c0f1
3 changed files with 15 additions and 17 deletions
|
@ -269,19 +269,19 @@ impl Window {
|
|||
(box SendableMainThreadScriptChan(tx), box rx)
|
||||
}
|
||||
|
||||
pub fn image_cache_task<'a>(&'a self) -> &'a ImageCacheTask {
|
||||
pub fn image_cache_task(&self) -> &ImageCacheTask {
|
||||
&self.image_cache_task
|
||||
}
|
||||
|
||||
pub fn compositor<'a>(&'a self) -> &'a IpcSender<ScriptToCompositorMsg> {
|
||||
pub fn compositor(&self) -> &IpcSender<ScriptToCompositorMsg> {
|
||||
&self.compositor
|
||||
}
|
||||
|
||||
pub fn browsing_context<'a>(&'a self) -> Ref<'a, Option<BrowsingContext>> {
|
||||
pub fn browsing_context(&self) -> Ref<Option<BrowsingContext>> {
|
||||
self.browsing_context.borrow()
|
||||
}
|
||||
|
||||
pub fn page<'a>(&'a self) -> &'a Page {
|
||||
pub fn page(&self) -> &Page {
|
||||
&*self.page
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue