Bug 1379940 - Fix high memory consumption when hovering links on Windows. r=kmag

This commit is contained in:
Stephen A Pohl 2017-07-12 12:06:00 -04:00
parent 0b89ab2c17
commit 7d2e9577c2
2 changed files with 11 additions and 0 deletions

View File

@ -7188,6 +7188,16 @@ nsWindow::IsPopup()
return mWindowType == eWindowType_popup;
}
bool
nsWindow::ShouldUseOffMainThreadCompositing()
{
if (IsSmallPopup()) {
return false;
}
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
}
void
nsWindow::WindowUsesOMTC()
{

View File

@ -302,6 +302,7 @@ public:
bool const DestroyCalled() { return mDestroyCalled; }
bool IsPopup();
virtual bool ShouldUseOffMainThreadCompositing() override;
const IMEContext& DefaultIMC() const { return mDefaultIMC; }