mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Minor tweaks: rename composed_parent_node_ref, remove or update outdated comments...
This commit is contained in:
parent
0313e38074
commit
bdd2f32c0f
6 changed files with 33 additions and 46 deletions
|
@ -10,7 +10,6 @@ use crate::dom::bindings::codegen::Bindings::RangeBinding::RangeMethods;
|
|||
use crate::dom::bindings::codegen::Bindings::RangeBinding::{self, RangeConstants};
|
||||
use crate::dom::bindings::codegen::Bindings::TextBinding::TextMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use crate::dom::bindings::codegen::InheritTypes::DocumentFragmentTypeId;
|
||||
use crate::dom::bindings::error::{Error, ErrorResult, Fallible};
|
||||
use crate::dom::bindings::inheritance::Castable;
|
||||
use crate::dom::bindings::inheritance::{CharacterDataTypeId, NodeTypeId};
|
||||
|
@ -764,11 +763,7 @@ impl RangeMethods for Range {
|
|||
|
||||
// Step 11
|
||||
let new_offset = new_offset +
|
||||
if node.type_id() ==
|
||||
NodeTypeId::DocumentFragment(DocumentFragmentTypeId::DocumentFragment) ||
|
||||
node.type_id() ==
|
||||
NodeTypeId::DocumentFragment(DocumentFragmentTypeId::ShadowRoot)
|
||||
{
|
||||
if let NodeTypeId::DocumentFragment(_) = node.type_id() {
|
||||
node.len()
|
||||
} else {
|
||||
1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue