Bug 1239537 - Remove Compositor::GetWidgetSize(), which is unused. r=mattwoodrow.

Also remove BasicCompositor::mWidgetSize because its only use can be replaced
by a temporary variable.
This commit is contained in:
Nicholas Nethercote
2016-01-13 15:27:34 -08:00
parent 0743c82e36
commit cc38e48566
6 changed files with 1 additions and 19 deletions

View File

@@ -520,8 +520,7 @@ BasicCompositor::BeginFrame(const nsIntRegion& aInvalidRegion,
gfx::Rect *aClipRectOut /* = nullptr */,
gfx::Rect *aRenderBoundsOut /* = nullptr */)
{
mWidgetSize = mWidget->GetClientSize();
LayoutDeviceIntRect intRect(LayoutDeviceIntPoint(), mWidgetSize);
LayoutDeviceIntRect intRect(LayoutDeviceIntPoint(), mWidget->GetClientSize());
Rect rect = Rect(0, 0, intRect.width, intRect.height);
LayoutDeviceIntRegion invalidRegionSafe;