From 3bbcde7acc342870ab9b8cdb9fb082f5f6ad0050 Mon Sep 17 00:00:00 2001 From: Neil Deakin Date: Tue, 23 Mar 2010 14:55:35 -0400 Subject: [PATCH] BBug 554092, resizer overlaps content window scrollbar, r=roc --- layout/generic/nsGfxScrollFrame.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 4a9babb29e3e..3f326e0a144e 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -3047,11 +3047,10 @@ nsGfxScrollFrameInner::AdjustScrollbarRectForResizer( if (!widget || !widget->ShowsResizeIndicator(&widgetRect)) return; - nsRect resizerRect = - nsRect(aPresContext->DevPixelsToAppUnits(widgetRect.x) - offset.x, - aPresContext->DevPixelsToAppUnits(widgetRect.y) - offset.y, - aPresContext->DevPixelsToAppUnits(widgetRect.width), - aPresContext->DevPixelsToAppUnits(widgetRect.height)); + resizerRect = nsRect(aPresContext->DevPixelsToAppUnits(widgetRect.x) - offset.x, + aPresContext->DevPixelsToAppUnits(widgetRect.y) - offset.y, + aPresContext->DevPixelsToAppUnits(widgetRect.width), + aPresContext->DevPixelsToAppUnits(widgetRect.height)); } if (!resizerRect.Contains(aRect.BottomRight() - nsPoint(1, 1)))