1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Replace WrapperGenerator's snake_name() with String::to_snakecase()

This now turns "createHTMLDocument" into "create_html_document", that's
another FIXME gone. :^)
This commit is contained in:
Linus Groh 2021-02-20 22:59:53 +01:00 committed by Andreas Kling
parent 4fafe14691
commit a4f80ee658
3 changed files with 17 additions and 37 deletions

View file

@ -39,7 +39,7 @@ DOMImplementation::DOMImplementation(Document& document)
{
}
const NonnullRefPtr<Document> DOMImplementation::create_htmldocument(const String& title) const
const NonnullRefPtr<Document> DOMImplementation::create_html_document(const String& title) const
{
auto html_document = Document::create();

View file

@ -45,8 +45,7 @@ public:
return adopt(*new DOMImplementation(document));
}
// FIXME: snake_case in WrapperGenerator turns "createHTMLDocument" into "create_htmldocument"
const NonnullRefPtr<Document> create_htmldocument(const String& title) const;
const NonnullRefPtr<Document> create_html_document(const String& title) const;
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
bool has_feature() const { return true; }