aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorNazım Can Altınova <canaltinova@gmail.com>2016-06-11 01:24:20 +0300
committerNazım Can Altınova <canaltinova@gmail.com>2016-06-11 01:24:20 +0300
commit41230fe03dff7f8c0fe72cd241dbc1ec9928021e (patch)
tree07e48a6651fb6564435583a0a5ff6b9ff83939d2 /components/script/dom/htmliframeelement.rs
parent2fb8525919a72a1e1d5c873fb18a97c67c93bd95 (diff)
downloadservo-41230fe03dff7f8c0fe72cd241dbc1ec9928021e.tar.gz
servo-41230fe03dff7f8c0fe72cd241dbc1ec9928021e.zip
Change sandbox to sandbox_allowance in HTMLIFrameElement
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 1c0e0c9cf1a..b203f1f6e8a 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -63,13 +63,13 @@ pub struct HTMLIFrameElement {
htmlelement: HTMLElement,
pipeline_id: Cell<Option<PipelineId>>,
subpage_id: Cell<Option<SubpageId>>,
- sandbox: Cell<Option<u8>>,
+ sandbox_allowance: Cell<Option<u8>>,
load_blocker: DOMRefCell<Option<LoadBlocker>>,
}
impl HTMLIFrameElement {
pub fn is_sandboxed(&self) -> bool {
- self.sandbox.get().is_some()
+ self.sandbox_allowance.get().is_some()
}
/// <https://html.spec.whatwg.org/multipage/#otherwise-steps-for-iframe-or-frame-elements>,
@@ -193,7 +193,7 @@ impl HTMLIFrameElement {
htmlelement: HTMLElement::new_inherited(localName, prefix, document),
pipeline_id: Cell::new(None),
subpage_id: Cell::new(None),
- sandbox: Cell::new(None),
+ sandbox_allowance: Cell::new(None),
load_blocker: DOMRefCell::new(None),
}
}
@@ -515,7 +515,7 @@ impl VirtualMethods for HTMLIFrameElement {
self.super_type().unwrap().attribute_mutated(attr, mutation);
match attr.local_name() {
&atom!("sandbox") => {
- self.sandbox.set(mutation.new_value(attr).map(|value| {
+ self.sandbox_allowance.set(mutation.new_value(attr).map(|value| {
let mut modes = SandboxAllowance::AllowNothing as u8;
for token in value.as_tokens() {
modes |= match &*token.to_ascii_lowercase() {