diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-10 08:58:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-10 09:13:30 +0100 |
commit | 5e91e61900f6d53d08b2420aa5a50069b2fa1e16 (patch) | |
tree | 97bd5fe9e538f535975b634e146133f7ff9cd4a3 /Userland/Libraries/LibWeb/DOM | |
parent | 1ad65b173b71271bbe91f154478c77e0ee607242 (diff) | |
download | serenity-5e91e61900f6d53d08b2420aa5a50069b2fa1e16.zip |
LibWeb: Remove WidgetBox layout node
The approach of attaching sub-widgets to the web view widget was only
ever going to work in single-process mode, and that's not what we're
about anymore, so let's just get rid of WidgetBox so we don't have the
dead-end architecture hanging over us.
The next step here is to re-implement <input type=text> using LibWeb
primitives.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 2918b42bcd..3eb3e0b747 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -43,7 +43,6 @@ #include <LibWeb/Layout/TableRowBox.h> #include <LibWeb/Layout/TableRowGroupBox.h> #include <LibWeb/Layout/TreeBuilder.h> -#include <LibWeb/Layout/WidgetBox.h> #include <LibWeb/Namespace.h> namespace Web::DOM { @@ -221,10 +220,6 @@ void Element::recompute_style() return; } - // Don't bother with style on widgets. NATIVE LOOK & FEEL BABY! - if (is<Layout::WidgetBox>(layout_node())) - return; - auto diff = StyleDifference::NeedsRelayout; if (old_specified_css_values) diff = compute_style_difference(*old_specified_css_values, *new_specified_css_values, document()); |