mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb: Do not override whitespace handling for editable elements
This condition no longer seems to be necessary for anything, and it caused newlines to not render correctly in editable nodes.
This commit is contained in:
parent
a48e693ea1
commit
29f1648bc5
Notes:
github-actions[bot]
2025-05-16 11:10:43 +00:00
Author: https://github.com/gmta
Commit: 29f1648bc5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4768
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 20 additions and 6 deletions
|
@ -339,9 +339,6 @@ void TextNode::compute_text_for_rendering()
|
|||
VERIFY_NOT_REACHED();
|
||||
}(computed_values().white_space());
|
||||
|
||||
if (dom_node().is_editable() && !dom_node().is_uninteresting_whitespace_node())
|
||||
collapse = false;
|
||||
|
||||
auto parent_element = dom_node().parent_element();
|
||||
auto const maybe_lang = parent_element ? parent_element->lang() : Optional<String> {};
|
||||
auto const lang = maybe_lang.has_value() ? maybe_lang.value() : Optional<StringView> {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue