| Index: Source/web/tests/WebFrameTest.cpp
|
| diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
|
| index 910d533efc0a4dd813315ada58a76807daa0d5be..41ff97db2763908f5fce07d29850c639035fdb70 100644
|
| --- a/Source/web/tests/WebFrameTest.cpp
|
| +++ b/Source/web/tests/WebFrameTest.cpp
|
| @@ -885,7 +885,7 @@ TEST_F(WebFrameTest, WideViewportInitialScaleDoesNotExpandFixedLayoutWidth)
|
| m_webView->settings()->setViewportMetaLayoutSizeQuirk(true);
|
| m_webView->resize(WebSize(viewportWidth, viewportHeight));
|
|
|
| - WebViewImpl* webViewImpl = static_cast<WebViewImpl*>(m_webView);
|
| + WebViewImpl* webViewImpl = toWebViewImpl(m_webView);
|
| EXPECT_EQ(viewportWidth, webViewImpl->mainFrameImpl()->frameView()->fixedLayoutSize().width());
|
| }
|
|
|
| @@ -907,7 +907,7 @@ TEST_F(WebFrameTest, ZeroValuesQuirk)
|
| Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests();
|
| m_webView->resize(WebSize(viewportWidth, viewportHeight));
|
|
|
| - WebViewImpl* webViewImpl = static_cast<WebViewImpl*>(m_webView);
|
| + WebViewImpl* webViewImpl = toWebViewImpl(m_webView);
|
| EXPECT_EQ(viewportWidth, webViewImpl->mainFrameImpl()->frameView()->fixedLayoutSize().width());
|
| EXPECT_EQ(1.0f, m_webView->pageScaleFactor());
|
|
|
|
|