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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user