|
@@ -9,6 +9,7 @@
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
#include <LibWeb/DOM/Event.h>
|
|
|
#include <LibWeb/Layout/SVGSVGBox.h>
|
|
|
+#include <LibWeb/SVG/AttributeNames.h>
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
|
|
|
|
|
namespace Web::SVG {
|
|
@@ -36,4 +37,12 @@ unsigned SVGSVGElement::height() const
|
|
|
return attribute(HTML::AttributeNames::height).to_uint().value_or(150);
|
|
|
}
|
|
|
|
|
|
+void SVGSVGElement::parse_attribute(FlyString const& name, String const& value)
|
|
|
+{
|
|
|
+ SVGGraphicsElement::parse_attribute(name, value);
|
|
|
+
|
|
|
+ if (name.equals_ignoring_case(SVG::AttributeNames::viewBox))
|
|
|
+ m_view_box = try_parse_view_box(value);
|
|
|
+}
|
|
|
+
|
|
|
}
|