mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make LayoutHTMLTextAreaElementHelpers::value_for_layout safe
This commit is contained in:
parent
e1e913d33c
commit
00c5ec202c
2 changed files with 13 additions and 14 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue