mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
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:
parent
519a1cdc22
commit
ccae0cae45
Notes:
sideshowbarker
2024-07-18 08:52:21 +09:00
Author: https://github.com/MaxWipfli
Commit: ccae0cae45
Pull-request: https://github.com/SerenityOS/serenity/pull/8784
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
2 changed files with 59 additions and 59 deletions
|
@ -304,7 +304,7 @@ public:
|
|||
return *ptr;
|
||||
}
|
||||
|
||||
DoctypeData& doctype_data()
|
||||
DoctypeData& ensure_doctype_data()
|
||||
{
|
||||
VERIFY(is_doctype());
|
||||
auto& ptr = m_data.get<OwnPtr<DoctypeData>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue