LibWeb: Remove hand-rolled is_foo() helpers in Layout::Node classes

This commit is contained in:
Andreas Kling 2021-01-01 18:55:47 +01:00
commit 07dd73c351
Notes: sideshowbarker 2024-07-19 00:15:49 +09:00
31 changed files with 39 additions and 82 deletions

View file

@ -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());