mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Change Text, Comment and ProcessingInstructions parent name from element to characterdata
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes. closes #1594
This commit is contained in:
parent
425210b9b4
commit
ffcd3833de
10 changed files with 32 additions and 21 deletions
|
@ -717,7 +717,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
|
|||
match self.type_id() {
|
||||
TextNodeTypeId => {
|
||||
unsafe {
|
||||
if !self.with_text(|text| text.element
|
||||
if !self.with_text(|text| text.characterdata
|
||||
.data
|
||||
.chars()
|
||||
.all(|c| c.is_whitespace())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue