RESOLVED FIXED 98468
[chromium] Scale plugin container by frameScaleFactor
https://bugs.webkit.org/show_bug.cgi?id=98468
Summary [chromium] Scale plugin container by frameScaleFactor
Alexandre Elias
Reported 2012-10-04 17:21:36 PDT
[chromium] Scale plugin container by frameScaleFactor
Attachments
Patch (2.29 KB, patch)
2012-10-04 17:22 PDT, Alexandre Elias
no flags
Alexandre Elias
Comment 1 2012-10-04 17:22:55 PDT
Adam Barth
Comment 2 2012-10-04 17:31:53 PDT
Comment on attachment 167212 [details] Patch Have you checked that this is still an issue?
Alexandre Elias
Comment 3 2012-10-04 17:33:15 PDT
Yes. I was going to delete it but it turned out to still be needed.
Adam Barth
Comment 4 2012-10-04 17:33:20 PDT
Comment on attachment 167212 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=167212&action=review > Source/WebKit/chromium/src/WebPluginContainerImpl.cpp:121 > + scaledDamageRect.scale(frameScaleFactor); > + scaledDamageRect.move(-frameRect().x() * (frameScaleFactor - 1), -frameRect().y() * (frameScaleFactor - 1)); Is there a function on mainFrame that can do this math for us? It seems strange for everyone who needs to transform a rect by the frame scale factor to do all this work.
Adam Barth
Comment 5 2012-10-04 17:34:10 PDT
Comment on attachment 167212 [details] Patch Thanks for the patch. Please consider the comment above before landing.
Alexandre Elias
Comment 6 2012-10-04 17:44:40 PDT
Comment on attachment 167212 [details] Patch This is the only instance of this pattern because it's a non-absolute coordinate, so I don't think it's worth a general method. Thanks, submitting.
WebKit Review Bot
Comment 7 2012-10-04 21:14:30 PDT
Comment on attachment 167212 [details] Patch Clearing flags on attachment: 167212 Committed r130455: <http://trac.webkit.org/changeset/130455>
WebKit Review Bot
Comment 8 2012-10-04 21:14:34 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.