servo/components/script/layout_dom
Martin Robinson 18b37e676b
script: Reduce the use of unsafe in LayoutDom (#31979)
Remove the use of unsafe code in the layout wrappers of the DOM. The
main change here is that `unsafe_get()` no longer needs to be an unsafe
method, which allows us to transitively remove or reduce unsafe blocks
from callers. The function itself is not renamed, because it's still
a bit dangerous to start removing the layers of abstraction from actual
DOM nodes.

In addition `init_style_and_opaque_layout_data` can be merged into
`initialize_data`, which removes one more unsafe method.

Finally, a "Safety" section is added to some unsafe methods.
2024-04-03 08:41:19 +00:00
..
document.rs script: Reduce the use of unsafe in LayoutDom (#31979) 2024-04-03 08:41:19 +00:00
element.rs script: Reduce the use of unsafe in LayoutDom (#31979) 2024-04-03 08:41:19 +00:00
mod.rs Eliminate duplicate Layout DOM wrappers 2023-05-05 17:16:38 +02:00
node.rs script: Reduce the use of unsafe in LayoutDom (#31979) 2024-04-03 08:41:19 +00:00
shadow_root.rs clippy: Fix dereferenced warnings (#31770) 2024-03-20 08:07:22 +00:00