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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user