mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +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:
parent
79a30c209d
commit
28dbe8eb10
Notes:
sideshowbarker
2024-07-17 01:12:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: 28dbe8eb10
Pull-request: https://github.com/SerenityOS/serenity/pull/21229
3 changed files with 2 additions and 29 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue