aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/construct.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-02-15 22:05:04 -0500
committerbors-servo <release+servo@mozilla.com>2014-02-15 22:05:04 -0500
commita0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9 (patch)
tree30ab014dfd6300b4e08bb2b34f5fe7d9211bfc6d /src/components/main/layout/construct.rs
parent425210b9b404ca769037879f9c2a01c63a0375c8 (diff)
parentffcd3833de3585f38a7b80c8b92bf7546803da8e (diff)
downloadservo-a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9.tar.gz
servo-a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9.zip
auto merge of #1702 : quandrum/servo/element_to_characterdata, r=jdm
... 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
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r--src/components/main/layout/construct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs
index 398a0479042..293ba995da3 100644
--- a/src/components/main/layout/construct.rs
+++ b/src/components/main/layout/construct.rs
@@ -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())) {