commit | 02f433a48bbdf666021fbd7e17023067e72ad6ee | [log] [tgz] |
---|---|---|
author | weinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jan 06 22:32:48 2015 +0000 |
committer | weinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jan 06 22:32:48 2015 +0000 |
tree | 75b80d1638f16726d0caa7cf81123584731b7709 | |
parent | b19ad43d07e5de51a492fb0062afd22beeb66258 [diff] [blame] |
Modernize the HTMLElement factory https://bugs.webkit.org/show_bug.cgi?id=140063 Reviewed by Darin Adler. Make the HTMLElement (and derived classes) create functions and HTMLElementFactory return Refs rather than RefPtr/PassRefPtr. * Files elided * git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/html/HTMLPreElement.h b/Source/WebCore/html/HTMLPreElement.h index cad9bfa..45880f5 100644 --- a/Source/WebCore/html/HTMLPreElement.h +++ b/Source/WebCore/html/HTMLPreElement.h
@@ -29,7 +29,7 @@ class HTMLPreElement final : public HTMLElement { public: - static RefPtr<HTMLPreElement> create(const QualifiedName&, Document&); + static Ref<HTMLPreElement> create(const QualifiedName&, Document&); private: HTMLPreElement(const QualifiedName&, Document&);