mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Cleanup some code.
This commit is contained in:
parent
d99e69e244
commit
388f685549
7 changed files with 59 additions and 84 deletions
|
@ -258,7 +258,8 @@ impl Document {
|
|||
|
||||
pub fn CreateTextNode(&self, data: &DOMString) -> AbstractNode<ScriptView> {
|
||||
let cx = self.get_cx();
|
||||
unsafe { Node::as_abstract_node(cx, @Text::new(null_str_as_empty(data))) }
|
||||
let text = @Text::new(null_str_as_empty(data));
|
||||
unsafe { Node::as_abstract_node(cx, text) }
|
||||
}
|
||||
|
||||
pub fn CreateEvent(&self, _interface: &DOMString) -> Fallible<@mut Event> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue