LibWeb: Make NavigableContainerViewport always have a NavigableContainer

Let's not limit this to only corresponding to an HTMLIFrameElement.
This commit is contained in:
Andreas Kling 2024-11-26 12:01:21 +01:00 committed by Andreas Kling
commit 11d966f3ba
Notes: github-actions[bot] 2024-11-26 17:59:36 +00:00
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ namespace Web::Layout {
GC_DEFINE_ALLOCATOR(NavigableContainerViewport);
NavigableContainerViewport::NavigableContainerViewport(DOM::Document& document, DOM::Element& element, CSS::StyleProperties style)
NavigableContainerViewport::NavigableContainerViewport(DOM::Document& document, HTML::NavigableContainer& element, CSS::StyleProperties style)
: ReplacedBox(document, element, move(style))
{
}