[Webkit-unassigned] [Bug 66564] WebKit uses the main screen's backing scale factor when it has no window, which isn't really relevant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 19 13:30:54 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66564





--- Comment #4 from Adam Roben (:aroben) <aroben at apple.com>  2011-08-19 13:30:54 PST ---
Specifically, WebKit uses -[NSScreen mainScreen]. I previously though that this meant the screen with the menu bar on it. But the documentation says:

The main screen is not necessarily the same screen that contains the menu bar or has its origin at (0, 0). The main screen refers to the screen containing the window that is currently receiving keyboard events. It is the main screen because it is the one with which the user is most likely interacting.

I agree with Darin that we'll probably need a way for client apps to specify the scale factor for windowless WebViews. But it still would be good to have a good default policy in cases where the scale factor isn't specified. It might end up being easiest to match whatever AppKit does (i.e., what's the behavior of -[NSView convertPointToBacking:NSMakePoint(1, 1)] for windowless views?), but I don't know if that behavior is specified anywhere.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list