Bug 1356575 - Don't warn on SetTransparencyMode on Windows if the mode isn't actually changing. r?jimm
MozReview-Commit-ID: J7dV0xKuEL7
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -3048,16 +3048,17 @@ void nsWindow::SetTransparencyMode(nsTra
nsWindow* window = GetTopLevelWindow(true);
MOZ_ASSERT(window);
if (!window || window->DestroyCalled()) {
return;
}
if (nsWindowType::eWindowType_toplevel == window->mWindowType &&
+ mTransparencyMode != aMode &&
!nsUXThemeData::CheckForCompositor()) {
NS_WARNING("Cannot set transparency mode on top-level windows.");
return;
}
window->SetWindowTranslucencyInner(aMode);
}