Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
index 6f4510143870f12d7f21f5420e52da495677b4ed..f69c0a7f7996765475e141ec7bf88899a148e666 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
@@ -318,9 +318,9 @@ SkImageFilter* CanvasRenderingContext2DState::getFilter(Element* styleResolution |
m_strokeStyle->applyToPaint(strokePaintForFilter); |
fillPaintForFilter.setColor(m_fillStyle->paintColor()); |
strokePaintForFilter.setColor(m_strokeStyle->paintColor()); |
- FloatSize floatCanvasSize(canvasSize); |
+ FloatRect referenceBox((FloatPoint()), FloatSize(canvasSize)); |
const double effectiveZoom = 1.0; // Deliberately ignore zoom on the canvas element |
- filterEffectBuilder->build(styleResolutionHost, filterStyle->filter(), effectiveZoom, &floatCanvasSize, &fillPaintForFilter, &strokePaintForFilter); |
+ filterEffectBuilder->build(styleResolutionHost, filterStyle->filter(), effectiveZoom, referenceBox, &fillPaintForFilter, &strokePaintForFilter); |
if (FilterEffect* lastEffect = filterEffectBuilder->lastEffect()) { |
m_resolvedFilter = SkiaImageFilterBuilder::build(lastEffect, ColorSpaceDeviceRGB); |