Index: Source/WebCore/page/FrameView.cpp |
=================================================================== |
--- Source/WebCore/page/FrameView.cpp (revision 94130) |
+++ Source/WebCore/page/FrameView.cpp (working copy) |
@@ -2446,6 +2446,23 @@ |
return false; |
} |
+void FrameView::clearOwningRendererForCustomScrollbars(RenderBox* box) |
+{ |
+ const HashSet<RefPtr<Widget> >* viewChildren = children(); |
+ HashSet<RefPtr<Widget> >::const_iterator end = viewChildren->end(); |
+ for (HashSet<RefPtr<Widget> >::const_iterator current = viewChildren->begin(); current != end; ++current) { |
+ Widget* widget = current->get(); |
+ if (widget->isScrollbar()) { |
+ Scrollbar* scrollbar = static_cast<Scrollbar*>(widget); |
+ if (scrollbar->isCustomScrollbar()) { |
+ RenderScrollbar* customScrollbar = toRenderScrollbar(scrollbar); |
+ if (customScrollbar->owningRenderer() == box) |
+ customScrollbar->clearOwningRenderer(); |
+ } |
+ } |
+ } |
+} |
+ |
FrameView* FrameView::parentFrameView() const |
{ |
if (Widget* parentView = parent()) { |