mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update script to work with lint changes
This commit is contained in:
parent
7022bedba3
commit
8819f0d8b8
6 changed files with 12 additions and 5 deletions
|
@ -1352,10 +1352,12 @@ impl Node {
|
|||
Node::new_(flags, Some(doc))
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new_document_node() -> Node {
|
||||
Node::new_(NodeFlags::new() | IS_IN_DOC, None)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
fn new_(flags: NodeFlags, doc: Option<&Document>) -> Node {
|
||||
Node {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue