mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Remove a pointless level of indentation.
This commit is contained in:
parent
a701397a9d
commit
b96594ea50
1 changed files with 8 additions and 8 deletions
|
@ -65,7 +65,8 @@ fn collect_text(element: &Element, value: &mut DOMString) {
|
||||||
let html_script = element.is_htmlscriptelement();
|
let html_script = element.is_htmlscriptelement();
|
||||||
if svg_script || html_script {
|
if svg_script || html_script {
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
for child in NodeCast::from_ref(element).children() {
|
for child in NodeCast::from_ref(element).children() {
|
||||||
if child.r().is_text() {
|
if child.r().is_text() {
|
||||||
let characterdata = CharacterDataCast::to_ref(child.r()).unwrap();
|
let characterdata = CharacterDataCast::to_ref(child.r()).unwrap();
|
||||||
|
@ -74,7 +75,6 @@ fn collect_text(element: &Element, value: &mut DOMString) {
|
||||||
collect_text(element_child, value);
|
collect_text(element_child, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl HTMLOptionElementMethods for HTMLOptionElement {
|
impl HTMLOptionElementMethods for HTMLOptionElement {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue