Index: Source/web/ChromeClientImpl.cpp |
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp |
index 999d3b396ce895bb3f439cc95e406050d2b63427..b46972ffb2d6ffffa88ae66ae3c0dc34cf087371 100644 |
--- a/Source/web/ChromeClientImpl.cpp |
+++ b/Source/web/ChromeClientImpl.cpp |
@@ -350,7 +350,7 @@ bool ChromeClientImpl::statusbarVisible() |
void ChromeClientImpl::setScrollbarsVisible(bool value) |
{ |
m_scrollbarsVisible = value; |
- WebFrameImpl* webFrame = static_cast<WebFrameImpl*>(m_webView->mainFrame()); |
+ WebFrameImpl* webFrame = toWebFrameImpl(m_webView->mainFrame()); |
if (webFrame) |
webFrame->setCanHaveScrollbars(value); |
} |