mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Backed out changeset 05dde680ade2 as per bug 575870 comment 71
This commit is contained in:
parent
65a26615c5
commit
f37452cd9f
@ -378,6 +378,7 @@ nsWindow::nsWindow() : nsBaseWidget()
|
||||
mDisplayPanFeedback = PR_FALSE;
|
||||
mTouchWindow = PR_FALSE;
|
||||
mCustomNonClient = PR_FALSE;
|
||||
mCompositorFlag = PR_FALSE;
|
||||
mHideChrome = PR_FALSE;
|
||||
mWindowType = eWindowType_child;
|
||||
mBorderStyle = eBorderStyle_default;
|
||||
@ -1988,6 +1989,13 @@ nsWindow::UpdateNonClientMargins(PRInt32 aSizeMode, PRBool aReflowWindow)
|
||||
if (!mCustomNonClient)
|
||||
return PR_FALSE;
|
||||
|
||||
// XXX Temp disable margins until frame rendering is supported
|
||||
mCompositorFlag = PR_TRUE;
|
||||
if(!nsUXThemeData::CheckForCompositor()) {
|
||||
mCompositorFlag = PR_FALSE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
mNonClientOffset.top = mNonClientOffset.bottom =
|
||||
mNonClientOffset.left = mNonClientOffset.right = 0;
|
||||
|
||||
@ -4564,6 +4572,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
// Glass hit testing w/custom transparent margins
|
||||
LRESULT dwmHitResult;
|
||||
if (mCustomNonClient &&
|
||||
mCompositorFlag &&
|
||||
nsUXThemeData::CheckForCompositor() &&
|
||||
nsUXThemeData::dwmDwmDefWindowProcPtr(mWnd, msg, wParam, lParam, &dwmHitResult)) {
|
||||
*aRetValue = dwmHitResult;
|
||||
@ -4704,7 +4713,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
// copies the valid information to the specified area within the new
|
||||
// client area. If the wParam parameter is FALSE, the application should
|
||||
// return zero.
|
||||
if (mCustomNonClient) {
|
||||
if (mCustomNonClient && mCompositorFlag) {
|
||||
if (!wParam) {
|
||||
result = PR_TRUE;
|
||||
*aRetValue = 0;
|
||||
@ -4744,7 +4753,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
* composited desktop.
|
||||
*/
|
||||
|
||||
if (!mCustomNonClient)
|
||||
if (!mCustomNonClient || !mCompositorFlag)
|
||||
break;
|
||||
|
||||
*aRetValue =
|
||||
|
@ -501,6 +501,8 @@ protected:
|
||||
nsIntMargin mNonClientMargins;
|
||||
// Indicates custom frames are enabled
|
||||
PRPackedBool mCustomNonClient;
|
||||
// Disable non client margins on non-comsitor desktops
|
||||
PRPackedBool mCompositorFlag;
|
||||
// Cached copy of L&F's resize border
|
||||
PRInt32 mHorResizeMargin;
|
||||
PRInt32 mVertResizeMargin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user