Index: Source/core/rendering/RenderImage.cpp |
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp |
index 2a9caff178da4b8c2b7737bfc0cc0ceacc8abefd..f2e67bb4952d0486448b81ad694dba53131b2865 100644 |
--- a/Source/core/rendering/RenderImage.cpp |
+++ b/Source/core/rendering/RenderImage.cpp |
@@ -40,6 +40,7 @@ |
#include "core/html/HTMLMapElement.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "core/inspector/InspectorTraceEvents.h" |
+#include "core/paint/BoxPainter.h" |
#include "core/rendering/HitTestResult.h" |
#include "core/rendering/PaintInfo.h" |
#include "core/rendering/RenderLayer.h" |
@@ -450,7 +451,7 @@ void RenderImage::paintIntoRect(GraphicsContext* context, const LayoutRect& rect |
HTMLImageElement* imageElt = isHTMLImageElement(node()) ? toHTMLImageElement(node()) : 0; |
CompositeOperator compositeOperator = imageElt ? imageElt->compositeOperator() : CompositeSourceOver; |
Image* image = img.get(); |
- InterpolationQuality interpolationQuality = chooseInterpolationQuality(context, image, image, alignedRect.size()); |
+ InterpolationQuality interpolationQuality = BoxPainter(*this).chooseInterpolationQuality(context, image, image, alignedRect.size()); |
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", "data", InspectorPaintImageEvent::data(*this)); |
// FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeline migrates to tracing. |