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

This commit is contained in:
Timothy Nikkel 2010-12-09 22:33:33 -06:00
Родитель b6c7ecaa31
Коммит 832dda7359
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -4597,8 +4597,12 @@ nsWindow::SetWindowClipRegion(const nsTArray<nsIntRect>& 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);