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:
Andreas Kling 2019-10-09 18:54:34 +02:00
commit 850955053f
Notes: sideshowbarker 2024-07-19 11:44:45 +09:00
6 changed files with 4 additions and 5 deletions

View file

@ -27,7 +27,7 @@ StyleResolver& Document::style_resolver()
return *m_style_resolver;
}
void Document::normalize()
void Document::fixup()
{
if (is<HTMLHtmlElement>(first_child()))
return;