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

Unified Diff: third_party/WebKit/Source/web/DevToolsEmulator.cpp

Issue 2570733002: [Devtools] Fixed devtools altering srcset image after close (Closed)
Patch Set: fixes Created 4 years 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
Index: third_party/WebKit/Source/web/DevToolsEmulator.cpp
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
index cb59bd0892dfe2ed841326ec0fe7cd32f6171b16..6369fb178ead97272b9de512e65688913c66705b 100644
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
@@ -200,7 +200,6 @@ void DevToolsEmulator::enableDeviceEmulation(
m_emulationParams.scale == params.scale) {
return;
}
-
m_emulationParams = params;
if (!m_deviceMetricsEnabled) {
@@ -234,7 +233,6 @@ void DevToolsEmulator::enableDeviceEmulation(
void DevToolsEmulator::disableDeviceEmulation() {
if (!m_deviceMetricsEnabled)
return;
-
m_deviceMetricsEnabled = false;
m_webViewImpl->setBackgroundColorOverride(Color::transparent);
m_webViewImpl->page()->settings().setDeviceScaleAdjustment(

Powered by Google App Engine
This is Rietveld 408576698