Bug 1019164 - Invalidate the old visible region when we change mask layers since the visible region might have changed at the same time. r=tn