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

@@ -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; }