if (!HtmlPage.READY_STATE_COMPLETE.equals(enclosingPageState) || frameUrl == URL_ABOUT_BLANK) {
return;
}
// now looks at the visibility of the frame window
final BaseFrame frameElement = fw.getFrameElement();
if (frameElement.isDisplayed()) {
final ScriptableObject scriptableObject = frameElement.getScriptObject();
final ComputedCSSStyleDeclaration style = ((HTMLElement) scriptableObject).jsxGet_currentStyle();
use = (style.getCalculatedWidth(false, false) != 0)
&& (style.getCalculatedHeight(false, false) != 0);
}
}