void ScrollableArea::didAddHorizontalScrollbar(Scrollbar* scrollbar) { scrollAnimator()->didAddHorizontalScrollbar(scrollbar); // <rdar://problem/9797253> AppKit resets the scrollbar's style when you attach a scrollbar setScrollbarOverlayStyle(scrollbarOverlayStyle()); }
void ScrollableArea::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orientation) { if (orientation == VerticalScrollbar) scrollAnimator()->didAddVerticalScrollbar(scrollbar); else scrollAnimator()->didAddHorizontalScrollbar(scrollbar); // <rdar://problem/9797253> AppKit resets the scrollbar's style when you attach a scrollbar setScrollbarOverlayStyle(scrollbarOverlayStyle()); }