Skip to content

Commit

Permalink
refactor(platform-browser): modernize/combine shared style host eleme…
Browse files Browse the repository at this point in the history
…nt management

The `SharedStylesHost` has been refactored to remove redundant code between the
`style` and `link` element execution paths. The existing `style` code has also
been adjusted to use modern syntax where possible and also improve the overall
logic.
  • Loading branch information
clydin committed Sep 12, 2024
1 parent 737f717 commit 1e4e2a2
Show file tree
Hide file tree
Showing 12 changed files with 150 additions and 149 deletions.
4 changes: 2 additions & 2 deletions goldens/size-tracking/integration-payloads.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
},
"standalone-bootstrap": {
"uncompressed": {
"main": 94681,
"main": 89354,
"polyfills": 33802
}
},
"defer": {
"uncompressed": {
"main": 13449,
"main": 12148,
"polyfills": 33807,
"defer.component": 371
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeClass"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeClass"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/core/test/bundling/defer/bundle.golden_symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeDehydratedView"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/core/test/bundling/router/bundle.golden_symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/core/test/bundling/todo/bundle.golden_symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,9 @@
{
"name": "remove"
},
{
"name": "removeAll"
},
{
"name": "removeFromArray"
},
Expand Down
Loading

0 comments on commit 1e4e2a2

Please sign in to comment.