Make LayoutHTMLTextAreaElementHelpers::value_for_layout safe

This commit is contained in:
Anthony Ramine 2020-03-31 14:35:37 +02:00
parent e1e913d33c
commit 00c5ec202c
2 changed files with 13 additions and 14 deletions

View file

@ -1467,7 +1467,7 @@ impl<'dom> LayoutNodeHelpers<'dom> for LayoutDom<'dom, Node> {
}
if let Some(area) = self.downcast::<HTMLTextAreaElement>() {
return unsafe { area.value_for_layout() };
return area.value_for_layout();
}
panic!("not text!")