diff options
Diffstat (limited to 'src/components/main')
-rw-r--r-- | src/components/main/layout/box_.rs | 4 | ||||
-rw-r--r-- | src/components/main/layout/construct.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/main/layout/box_.rs b/src/components/main/layout/box_.rs index 3350e3050f8..f528a71260d 100644 --- a/src/components/main/layout/box_.rs +++ b/src/components/main/layout/box_.rs @@ -22,7 +22,7 @@ use servo_util::geometry::Au; use servo_util::geometry; use servo_util::range::*; use servo_util::namespace; -use servo_util::str::is_whitespace_not_nbsp; +use servo_util::str::is_whitespace; use std::cast; use std::cell::RefCell; @@ -1429,7 +1429,7 @@ impl Box { /// Returns true if this box is an unscanned text box that consists entirely of whitespace. pub fn is_whitespace_only(&self) -> bool { match self.specific { - UnscannedTextBox(ref text_box_info) => is_whitespace_not_nbsp(text_box_info.text), + UnscannedTextBox(ref text_box_info) => is_whitespace(text_box_info.text), _ => false, } } diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 4a2dc5a055d..41b38577599 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -43,7 +43,7 @@ use style::ComputedValues; use servo_util::namespace; use servo_util::url::parse_url; use servo_util::url::is_image_data; -use servo_util::str::is_whitespace_not_nbsp; +use servo_util::str::is_whitespace; use extra::url::Url; use extra::arc::Arc; @@ -725,7 +725,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { match self.type_id() { TextNodeTypeId => { unsafe { - if !self.with_text(|text| is_whitespace_not_nbsp(text.characterdata.data)) { + if !self.with_text(|text| is_whitespace(text.characterdata.data)) { return false } |