diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-01 18:55:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 18:56:49 +0100 |
commit | 07dd73c3510f6bd9f569e101f60e5bf6a1614108 (patch) | |
tree | 0fc36cf0b67dc968ccd22e1311a4dde315ac791b /Libraries/LibWeb/DOM | |
parent | 3bb0cb2202a487303ece7444b4805fd0d30c97ed (diff) | |
download | serenity-07dd73c3510f6bd9f569e101f60e5bf6a1614108.zip |
LibWeb: Remove hand-rolled is_foo() helpers in Layout::Node classes
Diffstat (limited to 'Libraries/LibWeb/DOM')
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 8c14451599..b7a128939d 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -44,6 +44,7 @@ #include <LibWeb/Layout/TableRowBox.h> #include <LibWeb/Layout/TableRowGroupBox.h> #include <LibWeb/Layout/TreeBuilder.h> +#include <LibWeb/Layout/WidgetBox.h> namespace Web::DOM { @@ -213,7 +214,7 @@ void Element::recompute_style() } // Don't bother with style on widgets. NATIVE LOOK & FEEL BABY! - if (layout_node()->is_widget()) + if (is<Layout::WidgetBox>(layout_node())) return; auto diff = compute_style_difference(layout_node()->specified_style(), *style, document()); |