|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
#include <LibURL/Origin.h>
|
|
|
#include <LibWeb/Bindings/HTMLIFrameElementPrototype.h>
|
|
|
+#include <LibWeb/CSS/StyleValues/DisplayStyleValue.h>
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
#include <LibWeb/DOM/Event.h>
|
|
|
#include <LibWeb/HTML/BrowsingContext.h>
|
|
@@ -37,6 +38,13 @@ JS::GCPtr<Layout::Node> HTMLIFrameElement::create_layout_node(CSS::StyleProperti
|
|
|
return heap().allocate_without_realm<Layout::FrameBox>(document(), *this, move(style));
|
|
|
}
|
|
|
|
|
|
+void HTMLIFrameElement::adjust_computed_style(CSS::StyleProperties& style)
|
|
|
+{
|
|
|
+ // https://drafts.csswg.org/css-display-3/#unbox
|
|
|
+ if (style.display().is_contents())
|
|
|
+ style.set_property(CSS::PropertyID::Display, CSS::DisplayStyleValue::create(CSS::Display::from_short(CSS::Display::Short::None)));
|
|
|
+}
|
|
|
+
|
|
|
void HTMLIFrameElement::attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value)
|
|
|
{
|
|
|
HTMLElement::attribute_changed(name, old_value, value);
|