mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Use DOMString for internal data of Trusted Types (#37472)
This avoids various conversions back and forth between DOMString and String. By using DOMString consistently, we avoid these double-conversions. The only caveat are the USVString which are initially passed into TrustedScriptURL. Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
dfbd5b7d21
commit
576c7445b8
9 changed files with 72 additions and 70 deletions
|
@ -3783,7 +3783,9 @@ impl Document {
|
|||
containing_class,
|
||||
field,
|
||||
can_gc,
|
||||
)?;
|
||||
)?
|
||||
.as_ref()
|
||||
.to_owned();
|
||||
}
|
||||
// Step 5: If lineFeed is true, append U+000A LINE FEED to string.
|
||||
if line_feed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue