mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make LayoutHTMLInputElementHelpers::value_for_layout return a cow
This commit is contained in:
parent
3e875ce3eb
commit
e1e913d33c
2 changed files with 31 additions and 26 deletions
|
@ -1463,7 +1463,7 @@ impl<'dom> LayoutNodeHelpers<'dom> for LayoutDom<'dom, Node> {
|
|||
}
|
||||
|
||||
if let Some(input) = self.downcast::<HTMLInputElement>() {
|
||||
return unsafe { input.value_for_layout() };
|
||||
return input.value_for_layout().into_owned();
|
||||
}
|
||||
|
||||
if let Some(area) = self.downcast::<HTMLTextAreaElement>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue