mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +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
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/skyrising
Commit: ee7282cbe4
Pull-request: https://github.com/SerenityOS/serenity/pull/19233
Reviewed-by: https://github.com/MacDue
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