From 832dda73591bee4a1ae8433827dc1dd3ccaa5e6d Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Thu, 9 Dec 2010 22:33:33 -0600 Subject: [PATCH] Bug 616884. Part 1. When setting the clip on windows on Linux don't return early if the clip hasn't ever been set before. r=roc a=roc --- widget/src/gtk2/nsWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widget/src/gtk2/nsWindow.cpp b/widget/src/gtk2/nsWindow.cpp index 311913b53ab4..2f24f74964c1 100644 --- a/widget/src/gtk2/nsWindow.cpp +++ b/widget/src/gtk2/nsWindow.cpp @@ -4597,8 +4597,12 @@ nsWindow::SetWindowClipRegion(const nsTArray& aRects, pixman_region32_intersect(&intersectRegion, &newRegion, &existingRegion); - if (pixman_region32_equal(&intersectRegion, &existingRegion)) + // If mClipRects is null we haven't set a clip rect yet, so we + // need to set the clip even if it is equal. + if (mClipRects && + pixman_region32_equal(&intersectRegion, &existingRegion)) { return; + } if (!pixman_region32_equal(&intersectRegion, &newRegion)) { GetIntRects(intersectRegion, &intersectRects);