Dequalify WindowContext and ViewContext references (#22477)
Release Notes: - N/A
This commit is contained in:
parent
016b5d60e1
commit
a15360bcc8
25 changed files with 43 additions and 51 deletions
|
@ -844,7 +844,7 @@ pub mod test {
|
|||
"TestPanel"
|
||||
}
|
||||
|
||||
fn position(&self, _: &gpui::WindowContext) -> super::DockPosition {
|
||||
fn position(&self, _: &WindowContext) -> super::DockPosition {
|
||||
self.position
|
||||
}
|
||||
|
||||
|
|
|
@ -1239,11 +1239,7 @@ pub mod test {
|
|||
None
|
||||
}
|
||||
|
||||
fn tab_content(
|
||||
&self,
|
||||
params: TabContentParams,
|
||||
_cx: &ui::prelude::WindowContext,
|
||||
) -> AnyElement {
|
||||
fn tab_content(&self, params: TabContentParams, _cx: &WindowContext) -> AnyElement {
|
||||
self.tab_detail.set(params.detail);
|
||||
gpui::div().into_any_element()
|
||||
}
|
||||
|
|
|
@ -1018,7 +1018,7 @@ mod element {
|
|||
fn request_layout(
|
||||
&mut self,
|
||||
_global_id: Option<&GlobalElementId>,
|
||||
cx: &mut ui::prelude::WindowContext,
|
||||
cx: &mut WindowContext,
|
||||
) -> (gpui::LayoutId, Self::RequestLayoutState) {
|
||||
let style = Style {
|
||||
flex_grow: 1.,
|
||||
|
@ -1119,7 +1119,7 @@ mod element {
|
|||
bounds: gpui::Bounds<ui::prelude::Pixels>,
|
||||
_: &mut Self::RequestLayoutState,
|
||||
layout: &mut Self::PrepaintState,
|
||||
cx: &mut ui::prelude::WindowContext,
|
||||
cx: &mut WindowContext,
|
||||
) {
|
||||
for child in &mut layout.children {
|
||||
child.element.paint(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue