Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1973)

Unified Diff: Source/web/DevToolsEmulator.cpp

Issue 1062333002: Don't enable @viewport support in inspector emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/DevToolsEmulator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/web/DevToolsEmulator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698