<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [WinCairo] Accelerated compositing does not respect device scale factor."
href="https://bugs.webkit.org/show_bug.cgi?id=148085#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [WinCairo] Accelerated compositing does not respect device scale factor."
href="https://bugs.webkit.org/show_bug.cgi?id=148085">bug 148085</a>
from <span class="vcard"><a class="email" href="mailto:peavo@outlook.com" title="peavo@outlook.com">peavo@outlook.com</a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=148085#c2">comment #2</a>)
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=259171&action=diff" name="attach_259171" title="Patch">attachment 259171</a> <a href="attachment.cgi?id=259171&action=edit" title="Patch">[details]</a></span>
> Patch
>
> View in context:
> <a href="https://bugs.webkit.org/attachment.cgi?id=259171&action=review">https://bugs.webkit.org/attachment.cgi?id=259171&action=review</a>
> </span >
Thanks for reviewing :)
<span class="quote">> does this fix pages like acko.net ?
> </span >
Yes, I believe so.
<span class="quote">> > Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp:166
> > + TransformationMatrix m;
> > + m.scale(deviceScaleFactor());
> > + double tx = (size.width() - size.width() / deviceScaleFactor()) / 2.0;
> > + double ty = (size.height() - size.height() / deviceScaleFactor()) / 2.0;
> > + m.translate(tx, ty);
>
> Why scale then translate? Where does the 2.0 come from?</span >
The translate will center the view.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>