DescriptionMac: Fix theme image drawing when building with >=10.9 SDK.
When linking with >=10.9 SDK, NSThemeFrame will have wantsLayer=YES and
wantsUpdateLayer=YES, resulting in the swizzled drawRect to be ineffective
(updateLayer is called instead of drawRect).
This patch moves the drawing of the theme image behind the tab strip area
to use a small subview instead. This subview is positioned at the top of the
window, behind its sibling views. The view will redraw when the window's
activation state changes because the theme image may be different.
NativeAppWindowCocoa is another user of the swizzled drawRect, so I'm not
removing the swizzling yet in this CL.
BUG=417872
Committed: https://crrev.com/b8bc771d55ccc9090f7e9b625a344b7377666720
Cr-Commit-Position: refs/heads/master@{#297498}
Patch Set 1 : #Patch Set 2 : Cleanup pass #Patch Set 3 : Add comments #Patch Set 4 : Rebase #
Total comments: 7
Patch Set 5 : Add comment #Patch Set 6 : Update moveContentViewToBack #
Total comments: 2
Patch Set 7 : Fix for erikchen #
Total comments: 2
Patch Set 8 : Comment for Avi #Messages
Total messages: 24 (7 generated)
|