chore: use taffy dimension directly

This commit is contained in:
Jonathan Kelley committed 2022-07-15 22:17:00 -04:00
1 parent 2369b0cc7f
commit 62b9a0593f
3 files changed
+59 -87

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ pub struct NodeView<'a> {
inner: &'a VNode<'a>,
mask: NodeMask,
}
impl<'a> NodeView<'a> {
pub fn new(mut vnode: &'a VNode<'a>, view: NodeMask, vdom: &'a VirtualDom) -> Self {
if let VNode::Component(sc) = vnode {