mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Don't use the Untraceable fields outside the module they're defined in.
This pattern will become illegal with the next Rust upgrade.
This commit is contained in:
parent
af616dba58
commit
a15cac53bc
8 changed files with 23 additions and 9 deletions
|
@ -32,7 +32,7 @@ enum SandboxAllowance {
|
|||
#[deriving(Encodable)]
|
||||
pub struct HTMLIFrameElement {
|
||||
htmlelement: HTMLElement,
|
||||
extra: Untraceable,
|
||||
priv extra: Untraceable,
|
||||
size: Option<IFrameSize>,
|
||||
sandbox: Option<u8>
|
||||
}
|
||||
|
@ -65,6 +65,10 @@ impl HTMLIFrameElement {
|
|||
pub fn is_sandboxed(&self) -> bool {
|
||||
self.sandbox.is_some()
|
||||
}
|
||||
|
||||
pub fn set_frame(&mut self, frame: Url) {
|
||||
self.extra.frame = Some(frame);
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLIFrameElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue