ScrollbarThemes should be returned by reference.
[WebKit-https.git] / Source / WebCore / platform / ios / ScrollbarThemeIOS.mm
index edc1a59..517010e 100644 (file)
 
 namespace WebCore {
 
-ScrollbarTheme* ScrollbarTheme::nativeTheme()
+ScrollbarTheme& ScrollbarTheme::nativeTheme()
 {
     static NeverDestroyed<ScrollbarThemeIOS> theme;
-    return &theme.get();
+    return theme;
 }
 
 void ScrollbarThemeIOS::registerScrollbar(Scrollbar&)