| Index: third_party/WebKit/Source/core/layout/ImageQualityController.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
|
| index 1635d905fdd9a0deb90658a8823f9c395b64d04c..429c944a4d78b12385518496691ca5351f6ad2a6 100644
|
| --- a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/frame/Settings.h"
|
| #include "core/page/ChromeClient.h"
|
| #include "core/page/Page.h"
|
|
|
| @@ -166,6 +167,11 @@ bool ImageQualityController::shouldPaintAtLowQuality(const LayoutObject& object,
|
| if (object.style()->imageRendering() == ImageRenderingOptimizeContrast)
|
| return true;
|
|
|
| + if (LocalFrame* frame = object.frame()) {
|
| + if (frame->settings() && frame->settings()->useDefaultImageInterpolationQuality())
|
| + return false;
|
| + }
|
| +
|
| // Look ourselves up in the hashtables.
|
| ObjectLayerSizeMap::iterator i = m_objectLayerSizeMap.find(&object);
|
| LayerSizeMap* innerMap = nullptr;
|
|
|