Bug 960692 - Remove WM_PAINT handling in winrt widget. f=bas, r=bbondy

This commit is contained in:
Jim Mathies 2014-03-03 12:18:50 -06:00
parent 9f6208bbe6
commit 8b360ac7f7
2 changed files with 3 additions and 13 deletions

View File

@ -369,7 +369,9 @@ FrameworkView::SendActivationEvent()
}
NS_ASSERTION(mWindow, "SetWindow must be called before SendActivationEvent!");
mWidget->Activated(mWinActiveState);
UpdateWidgetSizeAndPosition();
if (mWinActiveState) {
UpdateWidgetSizeAndPosition();
}
EnsureAutomationProviderCreated();
}

View File

@ -798,18 +798,6 @@ MetroWidget::WindowProcedure(HWND aWnd, UINT aMsg, WPARAM aWParam, LPARAM aLPara
}
switch (aMsg) {
case WM_PAINT:
{
HRGN rgn = CreateRectRgn(0, 0, 0, 0);
GetUpdateRgn(mWnd, rgn, false);
nsIntRegion region = WinUtils::ConvertHRGNToRegion(rgn);
DeleteObject(rgn);
if (region.IsEmpty())
break;
Paint(region);
break;
}
case WM_POWERBROADCAST:
{
switch (aWParam)