Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 56a642dec49b640e4a6fbb1bd43f448f10387641..996b4d775af9ddbd511c3e53d385a9e9870cccbc 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -490,13 +490,6 @@ bool FrameView::shouldUseCustomScrollbars(Element*& customScrollbarElement, Loca |
return true; |
} |
- // If we have an owning ipage/LocalFrame element, then it can set the custom scrollbar also. |
- LayoutPart* frameLayoutObject = m_frame->ownerLayoutObject(); |
- if (frameLayoutObject && frameLayoutObject->style()->hasPseudoStyle(PseudoIdScrollbar)) { |
- customScrollbarFrame = m_frame.get(); |
- return true; |
- } |
- |
return false; |
} |