[Webkit-unassigned] [Bug 231754] Repaint issue with animating SVG inside <img> with object-fit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 14 12:16:33 PDT 2021


--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Partial fix:

diff --git a/Source/WebCore/rendering/RenderImage.cpp b/Source/WebCore/rendering/RenderImage.cpp
index 4e89c2e80b7801407d8eea0ae06c349666125012..5c8730151f09b77a03da0e02a38d1ccc5d792c73 100644
--- a/Source/WebCore/rendering/RenderImage.cpp
+++ b/Source/WebCore/rendering/RenderImage.cpp
@@ -371,7 +371,7 @@ void RenderImage::repaintOrMarkForLayout(ImageSizeChangeType imageSizeChange, co

-    LayoutRect repaintRect = contentBoxRect();
+    LayoutRect repaintRect = replacedContentRect();
     if (rect) {
         // The image changed rect is in source image coordinates (pre-zooming),
         // so map from the bounds of the image to the contentsBox.

There's a bad initial repaint, and this needs tests.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211014/de8b3c56/attachment-0001.htm>

More information about the webkit-unassigned mailing list