Hello, WebKit folks, I'm working on emulating the device scale factor with Web Inspector. My goal is to let web developers see their pages on "normal" (device pixel ratio == 1) monitors the way they would look on e.g. retina screens. Page::setDeviceScaleFactor() is not something we can use, since it will have the reverse effect when used by platform-specific compositor code (which I saw on Chromium, and its compositor is far from being ready for such abnormal treatment.)
I took the approach of instrumenting the WebCore/css and WebCore/page code relying on the page->deviceScaleFactor() value. This worked pretty well, and you can see the respective patch at https://bugs.webkit.org/attachment.cgi?id=172046&action=prettypatch ( https://bugs.webkit.org/show_bug.cgi?id=100762), but now I'm wondering if there are better ways to implement this without instrumenting lots of page->deviceScaleFactor() call sites. Comments, ideas, suggestions, please? -- Regards, Alexander
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev