Remove obsolete Gecko image hack. Apparently this has been fixed in Gecko.

This commit is contained in:
Neil Fraser
2016-11-14 17:36:02 -08:00
parent 1a7adaf30e
commit 594c46785f

View File

@@ -84,17 +84,6 @@ Blockly.FieldImage.prototype.init = function() {
{'height': this.height_ + 'px',
'width': this.width_ + 'px'}, this.fieldGroup_);
this.setValue(this.src_);
if (goog.userAgent.GECKO) {
/**
* Due to a Firefox bug which eats mouse events on image elements,
* a transparent rectangle needs to be placed on top of the image.
* @type {SVGElement}
*/
this.rectElement_ = Blockly.createSvgElement('rect',
{'height': this.height_ + 'px',
'width': this.width_ + 'px',
'fill-opacity': 0}, this.fieldGroup_);
}
this.sourceBlock_.getSvgRoot().appendChild(this.fieldGroup_);
// Configure the field to be transparent with respect to tooltips.