mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
LibWeb: Specialize is<DOM::Element>() and is<Layout::Box>()
These two show up in profiles, so let's add specializations for them.
This commit is contained in:
parent
d3046a2649
commit
0fd577084f
3 changed files with 22 additions and 0 deletions
|
@ -115,6 +115,8 @@ public:
|
|||
virtual void paint_fragment(PaintContext&, const LineBoxFragment&, PaintPhase) const { }
|
||||
virtual void after_children_paint(PaintContext&, PaintPhase) {};
|
||||
|
||||
virtual bool is_box() const { return false; }
|
||||
|
||||
bool is_floating() const;
|
||||
bool is_positioned() const;
|
||||
bool is_absolutely_positioned() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue