Script: Remove last instances of Deref<str> and DerefMut<str> used for DOMString (#39504)

This removes the last instances of Deref<str> and DerefMut<str> used for
DOMString.
The goal is outlined in https://github.com/servo/servo/issues/39479.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing: Compilation is the test as it just changes function names
essentially.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger
2025-09-27 03:48:24 +02:00
committed by GitHub
parent 89293995f0
commit 18a1da0d80
27 changed files with 85 additions and 84 deletions

View File

@@ -255,7 +255,7 @@ pub(crate) fn handle_get_stylesheet_style(
.filter_map(move |i| {
let rule = list.Item(i, can_gc)?;
let style = rule.downcast::<CSSStyleRule>()?;
if *selector != *style.SelectorText() {
if *selector != style.SelectorText() {
return None;
};
Some(style.Style(can_gc))