Chromium Code Reviews| 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()); |