Scrollbars and ScrollAnimators must always have a ScrollableArea
[WebKit-https.git] / Source / WebCore / platform / efl / ScrollbarEfl.cpp
index 48a0b8c..c84a566 100644 (file)
 
 namespace WebCore {
 
-PassRefPtr<Scrollbar> Scrollbar::createNativeScrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize size)
+PassRefPtr<Scrollbar> Scrollbar::createNativeScrollbar(ScrollableArea& scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize size)
 {
     if (Settings::mockScrollbarsEnabled())
         return adoptRef(new Scrollbar(scrollableArea, orientation, size));
 
     return adoptRef(new ScrollbarEfl(scrollableArea, orientation, size));
 }
+ScrollbarEfl::ScrollbarEfl(ScrollableArea& scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize controlSize)
 
-ScrollbarEfl::ScrollbarEfl(ScrollableArea* scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize controlSize)
     : Scrollbar(scrollableArea, orientation, controlSize)
 {
 }