[Webkit-unassigned] [Bug 148221] Using the filter functional notation for background images results in wrong background-size rendering

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 22 21:22:59 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=148221

--- Comment #5 from zalan <zalan at apple.com> ---
genererate filter image ignores the size argument when it copies the source to the destination.    

diff --git a/Source/WebCore/css/CSSFilterImageValue.cpp b/Source/WebCore/css/CSSFilterImageValue.cpp
index 5d80331..41de312 100644
--- a/Source/WebCore/css/CSSFilterImageValue.cpp
+++ b/Source/WebCore/css/CSSFilterImageValue.cpp
@@ -123,7 +123,7 @@ RefPtr<Image> CSSFilterImageValue::image(RenderElement* renderer, const FloatSiz
     std::unique_ptr<ImageBuffer> texture = ImageBuffer::create(size);
     if (!texture)
         return Image::nullImage();
-    texture->context()->drawImage(image, ColorSpaceDeviceRGB, IntPoint());
+    texture->context()->drawImage(image, ColorSpaceDeviceRGB, FloatRect(FloatPoint(0, 0), size));

     RefPtr<FilterEffectRenderer> filterRenderer = FilterEffectRenderer::create();
     filterRenderer->setSourceImage(WTF::move(texture));

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150823/d6b06357/attachment.html>


More information about the webkit-unassigned mailing list