mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibWeb: Make pseudo-elements inspectable
This makes it possible to set a pseudo-element as the inspected node using Document::set_inspected_node(), Document then provides inspected_layout_node() for the painting related functions.
This commit is contained in:
parent
5e3e9b2f61
commit
ee7282cbe4
6 changed files with 28 additions and 15 deletions
|
@ -30,6 +30,8 @@ constexpr float sin_60_deg = 0.866025403f;
|
|||
|
||||
void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const
|
||||
{
|
||||
if (phase == PaintPhase::Overlay)
|
||||
PaintableBox::paint(context, phase);
|
||||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue