return shadow != null;
}
- private void removeShim() {
+ private void removeShimElement() {
if (shimElement != null) {
shimElement.removeFromParent();
}
return isShadowEnabled() && shadow.getParentElement() != null;
}
- private boolean isShimAttached() {
+ private boolean isShimElementAttached() {
return shimElement != null && shimElement.hasParentElement();
}
}
private IFrameElement getShimElement() {
- if (shimElement == null && useShimIframe()) {
+ if (shimElement == null && needsShimElement()) {
shimElement = Document.get().createIFrameElement();
// Insert shim iframe before the main overlay element. It does not
// Always ensure shadow is removed when the overlay is removed.
removeShadowIfPresent();
- removeShim();
+ removeShimElement();
}
@Override
DOM.setStyleAttribute(shadow, "display", progress < 0.9 ? "none"
: "");
}
- if (useShimIframe()) {
+ if (needsShimElement()) {
updatePositionAndSize((Element) Element.as(getShimElement()),
positionAndSize);
}
RootPanel.get().getElement().insertBefore(shadow, getElement());
sinkShadowEvents();
}
- if (useShimIframe() && !isShimAttached()) {
+ if (needsShimElement() && !isShimElementAttached()) {
RootPanel.get().getElement()
- .insertBefore(shimElement, getElement());
+ .insertBefore(getShimElement(), getElement());
}
}
*
* @return true if a shim iframe should be added, false otherwise
*/
- protected boolean useShimIframe() {
+ protected boolean needsShimElement() {
BrowserInfo info = BrowserInfo.get();
return info.isIE() && info.isBrowserVersionNewerOrEqual(8, 0);
}