1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

LibWeb: Use SVGPresentationAttribute mode for SVG attributes

This replaces the previous TemporarilyEnableQuirksMode hack, which has
now been removed. :^)
This commit is contained in:
Sam Atkins 2023-09-25 15:28:05 +01:00 committed by Andreas Kling
parent 79a30c209d
commit 28dbe8eb10
3 changed files with 2 additions and 29 deletions

View file

@ -11,27 +11,6 @@
namespace Web::SVG {
namespace FIXME {
class TemporarilyEnableQuirksMode {
public:
TemporarilyEnableQuirksMode(DOM::Document const& document)
: m_document(const_cast<DOM::Document&>(document))
, m_previous_quirks_mode(document.mode())
{
m_document.set_quirks_mode(DOM::QuirksMode::Yes);
}
~TemporarilyEnableQuirksMode()
{
m_document.set_quirks_mode(m_previous_quirks_mode);
}
private:
DOM::Document& m_document;
DOM::QuirksMode m_previous_quirks_mode {};
};
}
class SVGElement : public DOM::Element {
WEB_PLATFORM_OBJECT(SVGElement, DOM::Element);