aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-09-02 14:44:39 +0530
committerPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-09-02 22:20:33 +0530
commit105ea0d6906f72797cff930d2712e9230f051cc2 (patch)
tree6bad3aca168a39c89ef283d354fe6916d837ec21 /components/script/dom/htmliframeelement.rs
parenteaf90c0b1c14717fb580bb0bdb8f6c4db363ace6 (diff)
downloadservo-105ea0d6906f72797cff930d2712e9230f051cc2.tar.gz
servo-105ea0d6906f72797cff930d2712e9230f051cc2.zip
renaming tokens(), atom() and uint() and rewriting to return or panic
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 121612ecdf8..d4cd6cae3ac 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -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,