aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/construct.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-03-09 00:14:14 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-03-20 23:41:59 +0900
commit0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d (patch)
tree25727b6e1595392fa6ea6b8e8e7eda70e4b8a662 /src/components/main/layout/construct.rs
parent19a7c429a1eea7b80cefb4b72138fafecc9b924a (diff)
downloadservo-0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d.tar.gz
servo-0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d.zip
Split TCast::to into TCast::to_unchecked and TCast::to.
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 29af0a734be..2c0a7093690 100644
--- a/src/components/main/layout/construct.rs
+++ b/src/components/main/layout/construct.rs
@@ -795,7 +795,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
match self.type_id() {
TextNodeTypeId => {
unsafe {
- let text: JS<Text> = TextCast::to(self.get_jsmanaged());
+ let text: JS<Text> = TextCast::to(self.get_jsmanaged()).unwrap();
if !is_whitespace(text.get().characterdata.data) {
return false
}