Bug 943084 - remove IsSmallPopup() (r=mattwoodrow).

This commit is contained in:
Andreas Gal 2013-11-25 15:23:23 -08:00
parent 00687a381b
commit 21da738102
2 changed files with 2 additions and 13 deletions

View File

@ -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,

View File

@ -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()
{