mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Script: Change the rest of script to not rely on Deref<str> for DOMString (#39481)
This is part of the future work of implementing LazyDOMString as outlined in issue #39479. We use str() method or direct implementations on DOMString for these methods. We also change some types. This is independent of https://github.com/servo/servo/pull/39480 Signed-off-by: Narfinger Narfinger@users.noreply.github.com Testing: This is essentially just renaming a method and a type and should not change functionality. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
9713bb9e1b
commit
1e471b9b41
50 changed files with 219 additions and 132 deletions
|
@ -160,7 +160,7 @@ impl ClipboardItemMethods<crate::DomTypeHolder> for ClipboardItem {
|
|||
|
||||
// Step 6.3 If key starts with `"web "` prefix, then
|
||||
// Step 6.3.1 Remove `"web "` prefix and assign the remaining string to key.
|
||||
let (key, is_custom) = match key.strip_prefix(CUSTOM_FORMAT_PREFIX) {
|
||||
let (key, is_custom) = match key.str().strip_prefix(CUSTOM_FORMAT_PREFIX) {
|
||||
None => (key.str(), false),
|
||||
// Step 6.3.2 Set isCustom true
|
||||
Some(stripped) => (stripped, true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue