mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 943084 - remove IsSmallPopup() (r=mattwoodrow).
This commit is contained in:
parent
00687a381b
commit
21da738102
@ -851,7 +851,7 @@ nsBaseWidget::ComputeShouldAccelerate(bool aDefault)
|
||||
#endif
|
||||
|
||||
// we should use AddBoolPrefVarCache
|
||||
bool disableAcceleration = IsSmallPopup() || gfxPlatform::GetPrefLayersAccelerationDisabled();
|
||||
bool disableAcceleration = gfxPlatform::GetPrefLayersAccelerationDisabled();
|
||||
mForceLayersAcceleration = gfxPlatform::GetPrefLayersAccelerationForceEnabled();
|
||||
|
||||
const char *acceleratedEnv = PR_GetEnv("MOZ_ACCELERATED");
|
||||
@ -992,15 +992,9 @@ void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||
// deallocated it when being freed.
|
||||
}
|
||||
|
||||
bool nsBaseWidget::IsSmallPopup()
|
||||
{
|
||||
return mWindowType == eWindowType_popup &&
|
||||
mPopupType != ePopupTypePanel;
|
||||
}
|
||||
|
||||
bool nsBaseWidget::ShouldUseOffMainThreadCompositing()
|
||||
{
|
||||
return CompositorParent::CompositorLoop() && !IsSmallPopup();
|
||||
return CompositorParent::CompositorLoop();
|
||||
}
|
||||
|
||||
LayerManager* nsBaseWidget::GetLayerManager(PLayerTransactionChild* aShadowManager,
|
||||
|
@ -324,11 +324,6 @@ protected:
|
||||
// if the new rectangles are different from the old rectangles.
|
||||
bool StoreWindowClipRegion(const nsTArray<nsIntRect>& aRects);
|
||||
|
||||
// We don't want to accelerate small popup windows like menu, but we still
|
||||
// want to accelerate xul panels that may contain arbitrarily complex content.
|
||||
bool IsSmallPopup();
|
||||
|
||||
|
||||
virtual already_AddRefed<nsIWidget>
|
||||
AllocateChildPopupWidget()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user