When checking for leaf node visibility use the true node not the element node (which in the case of a text node it is the parent node)
When checking for leaf node visibility use the true node not the element node (which in the case of a text node it is the parent node)

This improves the accuracy of visibility detection for some element/text layout edge cases.

NYPL/readium-shared-js,NYPL-Simplified/readium-shared-js,readium/readium-shared-js,ravn-no/readium-shared-js,NYPL/readium-shared-js,ravn-no/readium-shared-js,kivuto/readium-shared-js,kivuto/readium-shared-js,readium/readium-shared-js,NYPL-Simplified/readium-shared-js,JoMedia/readium-shared-js