mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibWeb: Add missing visit_edges() for ImageStyleValue
ImageStyleValue has a visit_edges() method, although it is not a GC-allocated object. This is necessary because it owns a GC-allocated ImageRequest that we want to visit, instead of using JS::Handle, to avoid leaks. In the future, we might want to make StyleValue be GC-allocated. For now, this change adds missing visit_edges() calls for objects that own ImageStyleValue.
This commit is contained in:
committed by
Andreas Kling
parent
b43b3d2f8d
commit
32be413f4e
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/32be413f4e Pull-request: https://github.com/SerenityOS/serenity/pull/21247
@@ -29,6 +29,8 @@ public:
|
||||
private:
|
||||
HTMLBodyElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
// ^DOM::Node
|
||||
virtual bool is_html_body_element() const override { return true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user