We can use the geometrical methods in same domain iframe cases as well. In case of cross domain we need to use the beacon method.
Having CROSS_DOMAIN Instead of IN_IFRAME indicator so the beacon method will be use in cross domain cases