mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Draw insertion point even for empty input fields
This allows text layout to generate an empty text fragment if the fragment contains the insertion point for a text input box.
This commit is contained in:
parent
831243af7c
commit
32aad0838e
4 changed files with 26 additions and 11 deletions
|
@ -1709,6 +1709,9 @@ impl Fragment {
|
|||
if other_info.requires_line_break_afterward_if_wrapping_on_newlines() {
|
||||
this_info.flags.insert(REQUIRES_LINE_BREAK_AFTERWARD_IF_WRAPPING_ON_NEWLINES);
|
||||
}
|
||||
if other_info.insertion_point.is_some() {
|
||||
this_info.insertion_point = other_info.insertion_point;
|
||||
}
|
||||
self.border_padding.inline_end = next_fragment.border_padding.inline_end;
|
||||
}
|
||||
_ => panic!("Can only merge two scanned-text fragments!"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue