mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Rename from_unrooted to from_temporary. Fixes #2332.
This commit is contained in:
parent
0bb838a58b
commit
51ef2f06ba
5 changed files with 16 additions and 16 deletions
|
@ -40,7 +40,7 @@ macro_rules! handle_element(
|
|||
$ctor: ident
|
||||
$(, $arg:expr )*) => (
|
||||
if $string == $localName {
|
||||
return ElementCast::from_unrooted($ctor::new($localName, $document $(, $arg)*));
|
||||
return ElementCast::from_temporary($ctor::new($localName, $document $(, $arg)*));
|
||||
}
|
||||
)
|
||||
)
|
||||
|
@ -243,7 +243,7 @@ pub fn build_element_from_tag(tag: DOMString, document: &JSRef<Document>) -> Tem
|
|||
handle_element!(document, tag, "ul", HTMLUListElement);
|
||||
handle_element!(document, tag, "video", HTMLVideoElement);
|
||||
|
||||
return ElementCast::from_unrooted(HTMLUnknownElement::new(tag, document));
|
||||
return ElementCast::from_temporary(HTMLUnknownElement::new(tag, document));
|
||||
}
|
||||
|
||||
pub fn parse_html(page: &Page,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue