| Index: Source/WebCore/page/FrameView.cpp
|
| ===================================================================
|
| --- Source/WebCore/page/FrameView.cpp (revision 118271)
|
| +++ Source/WebCore/page/FrameView.cpp (working copy)
|
| @@ -482,12 +482,12 @@
|
| // Try the <body> element first as a scrollbar source.
|
| Element* body = doc ? doc->body() : 0;
|
| if (body && body->renderer() && body->renderer()->style()->hasPseudoStyle(SCROLLBAR))
|
| - return RenderScrollbar::createCustomScrollbar(this, orientation, body->renderer()->enclosingBox());
|
| + return RenderScrollbar::createCustomScrollbar(this, orientation, body);
|
|
|
| // If the <body> didn't have a custom style, then the root element might.
|
| Element* docElement = doc ? doc->documentElement() : 0;
|
| if (docElement && docElement->renderer() && docElement->renderer()->style()->hasPseudoStyle(SCROLLBAR))
|
| - return RenderScrollbar::createCustomScrollbar(this, orientation, docElement->renderBox());
|
| + return RenderScrollbar::createCustomScrollbar(this, orientation, docElement);
|
|
|
| // If we have an owning iframe/frame element, then it can set the custom scrollbar also.
|
| RenderPart* frameRenderer = m_frame->ownerRenderer();
|
| @@ -2912,23 +2912,6 @@
|
| 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()) {
|
|
|