mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibWeb: Remove hand-rolled is_foo() helpers in Layout::Node classes
This commit is contained in:
parent
3bb0cb2202
commit
07dd73c351
31 changed files with 39 additions and 82 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue