Skip to content

Commit

Permalink
This change refactors the implementation of Stylesheet resources and …
Browse files Browse the repository at this point in the history
…Style tag Resources. The Style tag resource was already handled with special rules because it does not Flush is the same way as other resources do. This change reimagines the precedences as a combination of a style tag rules queue and a list of stylesheets.

This change eliminates a number of conditionals by embedding these variants in the data represenation itself.

This change also moves the binary encoding to work time rather than flush time.

Since style resources were the only type that actually used the `type` property I've removed this making resource object size slightly smaller
  • Loading branch information
gnoff committed Sep 20, 2023
1 parent b775564 commit 1254235
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 221 deletions.
Loading

0 comments on commit 1254235

Please sign in to comment.