Remove after_layout from Element trait

Now that layout takes a MutableAppContext we don't need an after_layout phase.
This commit is contained in:
Nathan Sobo
2021-08-20 16:40:45 -06:00
parent d0a5bc694c
commit d68e0b0b97
18 changed files with 22 additions and 191 deletions
+2 -5
View File
@@ -9,8 +9,8 @@ use gpui::{
},
json::{self, ToJson},
text_layout::{self, TextLayoutCache},
AfterLayoutContext, AppContext, Border, Element, Event, EventContext, FontCache, LayoutContext,
MutableAppContext, PaintContext, Quad, Scene, SizeConstraint, ViewContext, WeakViewHandle,
AppContext, Border, Element, Event, EventContext, FontCache, LayoutContext, MutableAppContext,
PaintContext, Quad, Scene, SizeConstraint, ViewContext, WeakViewHandle,
};
use json::json;
use smallvec::SmallVec;
@@ -552,9 +552,6 @@ impl Element for EditorElement {
(size, Some(layout))
}
fn after_layout(&mut self, _: Vector2F, _: &mut Self::LayoutState, _: &mut AfterLayoutContext) {
}
fn paint(
&mut self,
bounds: RectF,