LibWeb: Rename HTMLToken::doctype_data() => ensure_doctype_data()

This renames the accessor to better reflect what it does, as this will
allocate a DoctypeData struct if there is none.
This commit is contained in:
Max Wipfli 2021-07-15 18:58:11 +02:00 committed by Ali Mohammad Pur
commit ccae0cae45
Notes: sideshowbarker 2024-07-18 08:52:21 +09:00
2 changed files with 59 additions and 59 deletions

View file

@ -304,7 +304,7 @@ public:
return *ptr;
}
DoctypeData& doctype_data()
DoctypeData& ensure_doctype_data()
{
VERIFY(is_doctype());
auto& ptr = m_data.get<OwnPtr<DoctypeData>>();