angular/packages/platform-browser/test/dom
Alan Agius 3c0577f991 perf(platform-browser): disable styles of removed components instead of removing (#51808)
This commit changes the behaviour of `REMOVE_STYLES_ON_COMPONENT_DESTROY`.

Now, `style` nodes are disabled instead of removed from DOM. This causes the same runtime behaviour but avoids recomputations when the stylesheet is re-added when the component is re-created. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/css_style_sheet.h;l=266;drc=31fb07c05718d671d96c227855bfe97af9e3fb20

NB: This changes is being done following some performance bottlenecks observed in Phanteon and their own recommendations.

Context:
http://chat/room/AAAAxKxTk40/jaP6Lj6fhmQ/jaP6Lj6fhmQ
https://crbug.com/1444522
http://b/289992821

PR Close #51808
2023-09-22 09:48:35 -07:00
..
events refactor(platform-browser): remove #9100 todos. (#49406) 2023-06-21 11:43:45 -07:00
dom_renderer_spec.ts perf(platform-browser): disable styles of removed components instead of removing (#51808) 2023-09-22 09:48:35 -07:00
shadow_dom_spec.ts refactor(platform-browser): Remove BrowserDetection (#50411) 2023-05-30 13:06:28 -07:00
shared_styles_host_spec.ts fix(platform-browser): set nonce attribute in a platform compatible way (#49624) 2023-03-29 09:26:54 -07:00