mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Clean up the cast calls
This commit is contained in:
parent
13ea3ac413
commit
68014af78e
66 changed files with 412 additions and 718 deletions
|
@ -63,9 +63,7 @@ impl TextMethods for Text {
|
|||
let parent = node.GetParentNode();
|
||||
if let Some(ref parent) = parent {
|
||||
// Step 7.
|
||||
parent.r().InsertBefore(new_node.upcast::<Node>(),
|
||||
node.GetNextSibling().r())
|
||||
.unwrap();
|
||||
parent.InsertBefore(new_node.upcast(), node.GetNextSibling().r()).unwrap();
|
||||
// TODO: Ranges.
|
||||
}
|
||||
// Step 8.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue