WebKit2 snapshot APIs should take the device scale factor into account to create snapshots at the appropriate resolution.
Created attachment 110591 [details] Patch
Comment on attachment 110591 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=110591&action=review > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:945 > + float deviceScaleFactor = corePage()->deviceScaleFactor(); Given that the code below repeatedly multiplies this by the scale factor and never uses the device scale factor alone, I’d suggest instead: float combinedScaleFactor = scaleFactor * corePage()->deviceScaleFactor();
(In reply to comment #2) > (From update of attachment 110591 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=110591&action=review > > > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:945 > > + float deviceScaleFactor = corePage()->deviceScaleFactor(); > > Given that the code below repeatedly multiplies this by the scale factor and never uses the device scale factor alone, I’d suggest instead: > > float combinedScaleFactor = scaleFactor * corePage()->deviceScaleFactor(); Fixed! Thanks! Change committed with revision 97191.