From 594c46785f2cced53390abb515cf4b6f2dd86918 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 14 Nov 2016 17:36:02 -0800 Subject: [PATCH] Remove obsolete Gecko image hack. Apparently this has been fixed in Gecko. --- core/field_image.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/field_image.js b/core/field_image.js index 71d8052f9..1af5d9ea1 100644 --- a/core/field_image.js +++ b/core/field_image.js @@ -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.