Improve code to determine which pages are visible

Change-Id: I2c349d987ddb5f399283088c128e6d4d056da4da
1 file changed