mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -13,6 +13,7 @@ use crate::dom::bindings::root::DomRoot;
|
|||
use crate::dom::document::Document;
|
||||
use crate::dom::htmlelement::HTMLElement;
|
||||
use crate::dom::node::{document_from_node, Node};
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct HTMLFrameSetElement {
|
||||
|
@ -36,6 +37,7 @@ impl HTMLFrameSetElement {
|
|||
prefix: Option<Prefix>,
|
||||
document: &Document,
|
||||
proto: Option<HandleObject>,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<HTMLFrameSetElement> {
|
||||
let n = Node::reflect_node_with_proto(
|
||||
Box::new(HTMLFrameSetElement::new_inherited(
|
||||
|
@ -43,6 +45,7 @@ impl HTMLFrameSetElement {
|
|||
)),
|
||||
document,
|
||||
proto,
|
||||
can_gc,
|
||||
);
|
||||
n.upcast::<Node>().set_weird_parser_insertion_mode();
|
||||
n
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue