mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Don't assign style to LayoutWidgets
The only CSS property we care about for widgets is "display:none". For everything else, we ignore it and use a native look & feel. :^)
This commit is contained in:
parent
b656fac00e
commit
83cda9e79e
Notes:
sideshowbarker
2024-07-19 05:49:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/83cda9e79ee
@ -196,6 +196,11 @@ void Element::recompute_style()
|
||||
tree_builder.build(*this);
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't bother with style on widgets. NATIVE LOOK & FEEL BABY!
|
||||
if (layout_node()->is_widget())
|
||||
return;
|
||||
|
||||
auto diff = compute_style_difference(layout_node()->style(), *style, document());
|
||||
if (diff == StyleDifference::None)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user