mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Split TCast::to into TCast::to_unchecked and TCast::to.
This commit is contained in:
parent
19a7c429a1
commit
0fccf5e386
10 changed files with 71 additions and 64 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue