WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
92395
Animated SVGs do not clear previous frame completely in hidpi mode.
https://bugs.webkit.org/show_bug.cgi?id=92395
Summary
Animated SVGs do not clear previous frame completely in hidpi mode.
Varun Jain
Reported
2012-07-26 10:36:02 PDT
Animated SVGs do not clear previous frame completely in hidpi mode.
Attachments
Patch
(30.56 KB, patch)
2012-07-26 10:38 PDT
,
Varun Jain
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from gce-cr-linux-02
(445.51 KB, application/zip)
2012-07-26 11:31 PDT
,
WebKit Review Bot
no flags
Details
Patch
(32.89 KB, patch)
2012-07-26 17:19 PDT
,
Varun Jain
no flags
Details
Formatted Diff
Diff
Patch
(33.72 KB, patch)
2012-07-27 09:06 PDT
,
Varun Jain
no flags
Details
Formatted Diff
Diff
Patch
(33.73 KB, patch)
2012-07-27 09:16 PDT
,
Varun Jain
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Varun Jain
Comment 1
2012-07-26 10:38:44 PDT
Created
attachment 154684
[details]
Patch
WebKit Review Bot
Comment 2
2012-07-26 11:31:47 PDT
Comment on
attachment 154684
[details]
Patch
Attachment 154684
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13353873
New failing tests: svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size.html svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-hidpi.html
WebKit Review Bot
Comment 3
2012-07-26 11:31:51 PDT
Created
attachment 154701
[details]
Archive of layout-test-results from gce-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Varun Jain
Comment 4
2012-07-26 17:19:55 PDT
Created
attachment 154795
[details]
Patch
Varun Jain
Comment 5
2012-07-27 09:06:46 PDT
Created
attachment 154969
[details]
Patch
Varun Jain
Comment 6
2012-07-27 09:16:08 PDT
Created
attachment 154972
[details]
Patch
Adam Barth
Comment 7
2012-07-27 10:59:57 PDT
Comment on
attachment 154972
[details]
Patch Makes sense.
Adam Barth
Comment 8
2012-07-27 11:00:39 PDT
@Eric or Wildfox, would either of you be willing to review this patch? Thanks!
Eric Seidel (no email)
Comment 9
2012-07-27 11:51:35 PDT
Seems reasonable to me.
Eric Seidel (no email)
Comment 10
2012-07-27 11:53:09 PDT
Comment on
attachment 154972
[details]
Patch It looks like you're using a repaint test, but it's repainting the whole area, which doesn't seem right. The change looks OK, but it's difficult to tell from you test.
Varun Jain
Comment 11
2012-07-27 11:57:25 PDT
(In reply to
comment #10
)
> (From update of
attachment 154972
[details]
) > It looks like you're using a repaint test, but it's repainting the whole area, which doesn't seem right. The change looks OK, but it's difficult to tell from you test.
If the test is run without the change, its very easy to see that its broken. This test is exactly the same as svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size.html.. only difference is the call to setBackingScale(2) before starting the test.
Darin Adler
Comment 12
2012-07-27 13:05:59 PDT
Comment on
attachment 154972
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154972&action=review
> Source/WebCore/svg/graphics/SVGImage.cpp:175 > + if (shouldClear == ClearImageBuffer) > + buffer->context()->clearRect(enclosingIntRect(scaledRect)); > + > // Draw SVG on top of ImageBuffer. > draw(buffer->context(), enclosingIntRect(scaledRect), rect, ColorSpaceDeviceRGB, CompositeSourceOver);
It’s a bit inelegant to compute enclosingIntRect(scaledRect) twice.
WebKit Review Bot
Comment 13
2012-07-27 13:43:50 PDT
Comment on
attachment 154972
[details]
Patch Clearing flags on attachment: 154972 Committed
r123914
: <
http://trac.webkit.org/changeset/123914
>
WebKit Review Bot
Comment 14
2012-07-27 13:43:55 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug