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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.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
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index f7bc3458e2db634245d22949e61f6a50f92e6a75..30d6f3419be58a80fc1299aa57c37714f00c8cee 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -49,6 +49,7 @@
#include "core/events/KeyboardEvent.h"
#include "core/events/UIEventWithKeyState.h"
#include "core/events/WheelEvent.h"
+#include "core/fetch/MemoryCache.h"
#include "core/fetch/UniqueIdentifier.h"
#include "core/frame/BrowserControls.h"
#include "core/frame/EventHandlerRegistry.h"
@@ -3455,6 +3456,7 @@ void WebViewImpl::setCompositorDeviceScaleFactorOverride(
float deviceScaleFactor) {
if (m_compositorDeviceScaleFactorOverride == deviceScaleFactor)
return;
+ memoryCache()->evictResources();
dgozman 2016/12/14 20:05:39 This is a strange place for evicting from memory c
m_compositorDeviceScaleFactorOverride = deviceScaleFactor;
if (m_zoomFactorForDeviceScaleFactor) {
setZoomLevel(zoomLevel());
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698