mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibHTML: Rename Document::normalize() to fixup() and always do it
Node.normalize() is a standard DOM API that coalesces Text nodes. To avoid clashing with that, rename it to fixup(). This patch also makes it happen automagically as part of parsing.
This commit is contained in:
@@ -27,7 +27,7 @@ StyleResolver& Document::style_resolver()
|
||||
return *m_style_resolver;
|
||||
}
|
||||
|
||||
void Document::normalize()
|
||||
void Document::fixup()
|
||||
{
|
||||
if (is<HTMLHtmlElement>(first_child()))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user