mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
renaming tokens(), atom() and uint() and rewriting to return or panic
This commit is contained in:
parent
eaf90c0b1c
commit
105ea0d690
8 changed files with 31 additions and 35 deletions
|
@ -362,7 +362,7 @@ impl VirtualMethods for HTMLIFrameElement {
|
|||
&atom!(sandbox) => {
|
||||
self.sandbox.set(mutation.new_value(attr).map(|value| {
|
||||
let mut modes = SandboxAllowance::AllowNothing as u8;
|
||||
for token in value.tokens().unwrap() {
|
||||
for token in value.as_tokens() {
|
||||
modes |= match &*token.to_ascii_lowercase() {
|
||||
"allow-same-origin" => SandboxAllowance::AllowSameOrigin,
|
||||
"allow-forms" => SandboxAllowance::AllowForms,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue