Port widgets to the new system

This commit is contained in:
Evan Almloff committed 2023-04-13 10:29:38 -05:00
1 parent c2b873c650
commit efa7305794
18 files changed
+286 -240

No files matched your search

+4 -2
View File
@@ -179,7 +179,8 @@ struct CustomElementWithSlot {
impl CustomElement for CustomElementWithSlot {
const NAME: &'static str = "customelementslot";
fn create(dom: &mut RealDom<()>) -> Self {
fn create(mut node: NodeMut<()>) -> Self {
let dom = node.real_dom_mut();
let child = dom.create_node(ElementNode {
tag: "div".into(),
namespace: None,
@@ -227,7 +228,8 @@ struct CustomElementWithNoSlot {
impl CustomElement for CustomElementWithNoSlot {
const NAME: &'static str = "customelementnoslot";
fn create(dom: &mut RealDom<()>) -> Self {
fn create(mut node: NodeMut<()>) -> Self {
let dom = node.real_dom_mut();
let root = dom.create_node(ElementNode {
tag: "div".into(),
namespace: None,