Improve use of NeverDestroyed
[WebKit-https.git] / Source / WebCore / rendering / RenderThemeGtk.cpp
index 18a2452..d9c216f 100644 (file)
 
 namespace WebCore {
 
-Ref<RenderTheme> RenderThemeGtk::create()
-{
-    return adoptRef(*new RenderThemeGtk());
-}
-
 RenderTheme& RenderTheme::singleton()
 {
-    static NeverDestroyed<Ref<RenderTheme>> theme(RenderThemeGtk::create());
-    return theme.get();
+    static NeverDestroyed<RenderThemeGtk> theme;
+    return theme;
 }
 
 static double getScreenDPI()