Index: Source/web/DevToolsEmulator.cpp |
diff --git a/Source/web/DevToolsEmulator.cpp b/Source/web/DevToolsEmulator.cpp |
index 8caf5393dcb8d81f78268ea3a8db28f1afba4f66..bf06eae0754bfea8a5833c517636eb932b9e2b6d 100644 |
--- a/Source/web/DevToolsEmulator.cpp |
+++ b/Source/web/DevToolsEmulator.cpp |
@@ -52,7 +52,6 @@ DevToolsEmulator::DevToolsEmulator(WebViewImpl* webViewImpl) |
, m_emulationAgent(nullptr) |
, m_deviceMetricsEnabled(false) |
, m_emulateMobileEnabled(false) |
- , m_originalViewportEnabled(false) |
, m_isOverlayScrollbarsEnabled(false) |
, m_originalDefaultMinimumPageScaleFactor(0) |
, m_originalDefaultMaximumPageScaleFactor(0) |
@@ -182,8 +181,6 @@ void DevToolsEmulator::enableMobileEmulation() |
m_emulateMobileEnabled = true; |
m_isOverlayScrollbarsEnabled = RuntimeEnabledFeatures::overlayScrollbarsEnabled(); |
RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(true); |
- m_originalViewportEnabled = RuntimeEnabledFeatures::cssViewportEnabled(); |
- RuntimeEnabledFeatures::setCSSViewportEnabled(true); |
m_webViewImpl->enableViewport(); |
m_webViewImpl->settings()->setViewportMetaEnabled(true); |
m_webViewImpl->settings()->setShrinksViewportContentToFit(true); |
@@ -202,7 +199,6 @@ void DevToolsEmulator::disableMobileEmulation() |
if (!m_emulateMobileEnabled) |
return; |
RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(m_isOverlayScrollbarsEnabled); |
- RuntimeEnabledFeatures::setCSSViewportEnabled(m_originalViewportEnabled); |
m_webViewImpl->disableViewport(); |
m_webViewImpl->settings()->setViewportMetaEnabled(false); |
m_webViewImpl->settings()->setShrinksViewportContentToFit(false); |