Move views_to_notify_if_ancestors_change to Window
This commit is contained in:
parent
2e7356a53e
commit
48d3e2d9b9
6 changed files with 20 additions and 47 deletions
|
@ -3204,8 +3204,7 @@ mod tests {
|
|||
Point::new(5, 6)..Point::new(6, 0),
|
||||
]);
|
||||
});
|
||||
let mut notify_views_if_parents_change = Default::default();
|
||||
let mut layout_cx = LayoutContext::new(cx, &mut notify_views_if_parents_change, false);
|
||||
let mut layout_cx = LayoutContext::new(cx, false);
|
||||
element.layout(
|
||||
SizeConstraint::new(vec2f(500., 500.), vec2f(500., 500.)),
|
||||
editor,
|
||||
|
@ -3290,8 +3289,7 @@ mod tests {
|
|||
DisplayPoint::new(10, 0)..DisplayPoint::new(13, 0),
|
||||
]);
|
||||
});
|
||||
let mut notify_views_if_parents_change = Default::default();
|
||||
let mut layout_cx = LayoutContext::new(cx, &mut notify_views_if_parents_change, false);
|
||||
let mut layout_cx = LayoutContext::new(cx, false);
|
||||
element.layout(
|
||||
SizeConstraint::new(vec2f(500., 500.), vec2f(500., 500.)),
|
||||
editor,
|
||||
|
@ -3351,8 +3349,7 @@ mod tests {
|
|||
|
||||
let mut element = EditorElement::new(editor.read_with(cx, |editor, cx| editor.style(cx)));
|
||||
let (size, mut state) = editor.update(cx, |editor, cx| {
|
||||
let mut notify_views_if_parents_change = Default::default();
|
||||
let mut layout_cx = LayoutContext::new(cx, &mut notify_views_if_parents_change, false);
|
||||
let mut layout_cx = LayoutContext::new(cx, false);
|
||||
element.layout(
|
||||
SizeConstraint::new(vec2f(500., 500.), vec2f(500., 500.)),
|
||||
editor,
|
||||
|
@ -3549,8 +3546,7 @@ mod tests {
|
|||
editor.set_soft_wrap_mode(language_settings::SoftWrap::EditorWidth, cx);
|
||||
editor.set_wrap_width(Some(editor_width), cx);
|
||||
|
||||
let mut notify_views_if_parents_change = Default::default();
|
||||
let mut layout_cx = LayoutContext::new(cx, &mut notify_views_if_parents_change, false);
|
||||
let mut layout_cx = LayoutContext::new(cx, false);
|
||||
element.layout(
|
||||
SizeConstraint::new(vec2f(editor_width, 500.), vec2f(editor_width, 500.)),
|
||||
editor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue