mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove most RootedReference uses
We can replace all uses of RootedReference for Option<T> by Option::deref calls.
This commit is contained in:
parent
7bdfad92a5
commit
5fe5e5d6de
34 changed files with 186 additions and 185 deletions
|
@ -9,7 +9,7 @@ use crate::dom::bindings::codegen::Bindings::TextBinding::{self, TextMethods};
|
|||
use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use crate::dom::bindings::error::{Error, Fallible};
|
||||
use crate::dom::bindings::inheritance::Castable;
|
||||
use crate::dom::bindings::root::{DomRoot, RootedReference};
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
use crate::dom::characterdata::CharacterData;
|
||||
use crate::dom::document::Document;
|
||||
|
@ -68,7 +68,7 @@ impl TextMethods for Text {
|
|||
if let Some(ref parent) = parent {
|
||||
// Step 7.1.
|
||||
parent
|
||||
.InsertBefore(new_node.upcast(), node.GetNextSibling().r())
|
||||
.InsertBefore(new_node.upcast(), node.GetNextSibling().deref())
|
||||
.unwrap();
|
||||
// Steps 7.2-3.
|
||||
node.ranges()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue