mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb/Painting: Don't paint invisible paintables
This check technically isn't necessary in `SVGForeignObjectPaintable::paint()` because `PaintableWithLines::paint(context, phase);` does the check already, but I've added it there anyway to save some debugging time if someone does add more code there. :^)
This commit is contained in:
parent
6ee91c4189
commit
994bbcaa75
Notes:
github-actions[bot]
2025-07-03 10:40:15 +00:00
Author: https://github.com/AtkinsSJ
Commit: 994bbcaa75
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5281
Reviewed-by: https://github.com/kalenikaliaksandr ✅
4 changed files with 33 additions and 0 deletions
|
@ -33,6 +33,9 @@ TraversalDecision SVGForeignObjectPaintable::hit_test(CSSPixelPoint position, Hi
|
|||
|
||||
void SVGForeignObjectPaintable::paint(PaintContext& context, PaintPhase phase) const
|
||||
{
|
||||
if (!is_visible())
|
||||
return;
|
||||
|
||||
PaintableWithLines::paint(context, phase);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue