mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1379940 - Fix high memory consumption when hovering links on Windows. r=kmag
This commit is contained in:
parent
0b89ab2c17
commit
7d2e9577c2
@ -7188,6 +7188,16 @@ nsWindow::IsPopup()
|
|||||||
return mWindowType == eWindowType_popup;
|
return mWindowType == eWindowType_popup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
nsWindow::ShouldUseOffMainThreadCompositing()
|
||||||
|
{
|
||||||
|
if (IsSmallPopup()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
nsWindow::WindowUsesOMTC()
|
nsWindow::WindowUsesOMTC()
|
||||||
{
|
{
|
||||||
|
@ -302,6 +302,7 @@ public:
|
|||||||
bool const DestroyCalled() { return mDestroyCalled; }
|
bool const DestroyCalled() { return mDestroyCalled; }
|
||||||
|
|
||||||
bool IsPopup();
|
bool IsPopup();
|
||||||
|
virtual bool ShouldUseOffMainThreadCompositing() override;
|
||||||
|
|
||||||
const IMEContext& DefaultIMC() const { return mDefaultIMC; }
|
const IMEContext& DefaultIMC() const { return mDefaultIMC; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user