Chromium Code Reviews
DescriptionMac: Convince the WindowServer to update the print preview shadow on retina screens
The OSX WindowServer currently forgets to draw the window shadow on
print preview when it's shown on retina displays. This started flakily
in 10.10 and now always happens. It's probably something to do with the
print preview dialog being wholly a layer-hosting NSView with the
WebContents showing print preview WebUI. This, combined with the private
APIs we currently use to show the dialog, seems to confuse the shadow
generation code in the WindowServer.
To fix, it seems we can make a call to -[NSWindow setFrame:] once the
animation completes. Other ways of invalidating the shadow didn't have
an effect. The setFrame call can't be a no-op, but it can be immediately
reversed. This doesn't seem to negatively impact other dialogs.
It does mean the dialog still doesn't have a shadow whilst it is
animating in, but that's less noticeable.
BUG=436884
TEST=Show Print Preview (Cmd+p) on a retina screen. It should have a
border/shadow.
Committed: https://crrev.com/21610ba731345e89dcb62229b3eceac977f6425b
Cr-Commit-Position: refs/heads/master@{#392286}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (5 generated)
|
|||||||||||||||||||