Skip to content

Commit

Permalink
Revert "Implement stylo dirty_descendents methods"
Browse files Browse the repository at this point in the history
Fixes :hover styling

This reverts commit 66498fd.
  • Loading branch information
nicoburns committed Dec 6, 2024
1 parent ed683d2 commit bc3d4b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 0 additions & 2 deletions packages/blitz-dom/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pub struct Node {
pub is_hovered: bool,
pub has_snapshot: bool,
pub snapshot_handled: AtomicBool,
pub has_dirty_descendents: AtomicBool,
pub display_outer: DisplayOuter,
pub cache: Cache,
pub unrounded_layout: Layout,
Expand Down Expand Up @@ -120,7 +119,6 @@ impl Node {
is_hovered: false,
has_snapshot: false,
snapshot_handled: AtomicBool::new(false),
has_dirty_descendents: AtomicBool::new(false),
display_outer: DisplayOuter::Block,
cache: Cache::new(),
unrounded_layout: Layout::new(),
Expand Down
13 changes: 5 additions & 8 deletions packages/blitz-dom/src/stylo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,7 @@ impl<'a> TElement for BlitzNode<'a> {
}

fn has_dirty_descendants(&self) -> bool {
self.has_dirty_descendents.load(Ordering::SeqCst)
}
unsafe fn set_dirty_descendants(&self) {
self.has_dirty_descendents.store(true, Ordering::SeqCst)
}

unsafe fn unset_dirty_descendants(&self) {
self.has_dirty_descendents.store(false, Ordering::SeqCst)
true
}

fn has_snapshot(&self) -> bool {
Expand All @@ -721,6 +714,10 @@ impl<'a> TElement for BlitzNode<'a> {
self.snapshot_handled.store(true, Ordering::SeqCst);
}

unsafe fn set_dirty_descendants(&self) {}

unsafe fn unset_dirty_descendants(&self) {}

fn store_children_to_process(&self, _n: isize) {
unimplemented!()
}
Expand Down

0 comments on commit bc3d4b8

Please sign in to comment.