зеркало из https://github.com/mozilla/gecko-dev.git
Bug 574454 - Remove widget level disabling code for chrome margins on non-aero dekstops. r=robaronold.
This commit is contained in:
Родитель
43bcab02a9
Коммит
65a26615c5
|
@ -378,7 +378,6 @@ nsWindow::nsWindow() : nsBaseWidget()
|
|||
mDisplayPanFeedback = PR_FALSE;
|
||||
mTouchWindow = PR_FALSE;
|
||||
mCustomNonClient = PR_FALSE;
|
||||
mCompositorFlag = PR_FALSE;
|
||||
mHideChrome = PR_FALSE;
|
||||
mWindowType = eWindowType_child;
|
||||
mBorderStyle = eBorderStyle_default;
|
||||
|
@ -1989,13 +1988,6 @@ 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;
|
||||
|
||||
|
@ -4572,7 +4564,6 @@ 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;
|
||||
|
@ -4713,7 +4704,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 && mCompositorFlag) {
|
||||
if (mCustomNonClient) {
|
||||
if (!wParam) {
|
||||
result = PR_TRUE;
|
||||
*aRetValue = 0;
|
||||
|
@ -4753,7 +4744,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
|||
* composited desktop.
|
||||
*/
|
||||
|
||||
if (!mCustomNonClient || !mCompositorFlag)
|
||||
if (!mCustomNonClient)
|
||||
break;
|
||||
|
||||
*aRetValue =
|
||||
|
|
|
@ -501,8 +501,6 @@ 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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче