@Override public void applyTo(ImagePrototypeElement imageElement) { impl.adjust(imageElement, url, left, top, width, height); }
@Override public void setUrlAndVisibleRect(Image image, SafeUri url, int left, int top, int width, int height) { /* * In the event that the clipping rectangle has not changed, we want to * skip all of the work required with a getImpl().adjust, and we do not * want to fire a load event. */ if (!this.url.equals(url) || this.left != left || this.top != top || this.width != width || this.height != height) { this.url = url; this.left = left; this.top = top; this.width = width; this.height = height; impl.adjust(image.getElement(), url, left, top, width, height); /* * The native load event hasn't fired yet, so we don't need to * synthesize an event. If we did synthesize an event, we would get two * load events. */ if (!pendingNativeLoadEvent) { fireSyntheticLoadEvent(image); } } }
@Override public void applyTo(ImagePrototypeElement imageElement) { impl.adjust(imageElement, url, left, top, width, height); }
@Override public void applyTo(ImagePrototypeElement imageElement) { impl.adjust(imageElement, url, left, top, width, height); }
@Override public void setUrlAndVisibleRect(Image image, SafeUri url, int left, int top, int width, int height) { /* * In the event that the clipping rectangle has not changed, we want to * skip all of the work required with a getImpl().adjust, and we do not * want to fire a load event. */ if (!this.url.equals(url) || this.left != left || this.top != top || this.width != width || this.height != height) { this.url = url; this.left = left; this.top = top; this.width = width; this.height = height; impl.adjust(image.getElement(), url, left, top, width, height); /* * The native load event hasn't fired yet, so we don't need to * synthesize an event. If we did synthesize an event, we would get two * load events. */ if (!pendingNativeLoadEvent) { fireSyntheticLoadEvent(image); } } }
@Override public void setUrlAndVisibleRect(Image image, SafeUri url, int left, int top, int width, int height) { /* * In the event that the clipping rectangle has not changed, we want to * skip all of the work required with a getImpl().adjust, and we do not * want to fire a load event. */ if (!this.url.equals(url) || this.left != left || this.top != top || this.width != width || this.height != height) { this.url = url; this.left = left; this.top = top; this.width = width; this.height = height; impl.adjust(image.getElement(), url, left, top, width, height); /* * The native load event hasn't fired yet, so we don't need to * synthesize an event. If we did synthesize an event, we would get two * load events. */ if (!pendingNativeLoadEvent) { fireSyntheticLoadEvent(image); } } }