mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Rename the LayoutMode enum values and explain them
The old mode names, while mechanically accurate, didn't really reflect their relationship to the CSS specifications. This patch renames them as follows: Default => Normal AllPossibleLineBreaks => MinContent OnlyRequiredLineBreaks => MaxContent There's also now an explainer comment with the LayoutMode enum about the specific implications of layout in each mode.
This commit is contained in:
parent
ceb055a75e
commit
c1f0d21bbe
Notes:
sideshowbarker
2024-07-17 17:07:10 +09:00
Author: https://github.com/awesomekling
Commit: c1f0d21bbe
10 changed files with 43 additions and 32 deletions
|
@ -577,7 +577,7 @@ void Document::update_layout()
|
|||
icb.set_has_definite_width(true);
|
||||
icb.set_has_definite_height(true);
|
||||
|
||||
root_formatting_context.run(*m_layout_root, Layout::LayoutMode::Default);
|
||||
root_formatting_context.run(*m_layout_root, Layout::LayoutMode::Normal);
|
||||
formatting_state.commit();
|
||||
|
||||
m_layout_root->build_stacking_context_tree();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue