mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Visit ImageProvider from Layout::ImageBox
Adds missing visit of HTMLElement that serves as image provider of image layout node.
This commit is contained in:
committed by
Andreas Kling
parent
9fa22b60cf
commit
ef01c735cd
@@ -22,6 +22,12 @@ ImageBox::ImageBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr
|
||||
|
||||
ImageBox::~ImageBox() = default;
|
||||
|
||||
void ImageBox::visit_edges(JS::Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_image_provider.to_html_element());
|
||||
}
|
||||
|
||||
void ImageBox::prepare_for_replaced_layout()
|
||||
{
|
||||
set_natural_width(m_image_provider.intrinsic_width());
|
||||
|
||||
Reference in New Issue
Block a user