Skip to content

Commit

Permalink
Revert "Merge pull request openlayers#432 from ahocevar/iframe-opacity"
Browse files Browse the repository at this point in the history
This reverts commit af046b9, reversing
changes made to f36fd5f. The reason for reverting this is that the change breaks the select-feature-multilayer.html example.
  • Loading branch information
ahocevar committed Apr 23, 2012
1 parent af046b9 commit a57c56e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions lib/OpenLayers/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1286,12 +1286,7 @@ OpenLayers.Layer = OpenLayers.Class({
this.opacity = opacity;
var childNodes = this.div.childNodes;
for(var i = 0, len = childNodes.length; i < len; ++i) {
var element = childNodes[i].lastChild || childNodes[i];
if (element.nodeName.toLowerCase() === "iframe") {
// changing opacity on IFrame elements does not work, so
// we set it on the parent
element = element.parentNode;
}
var element = childNodes[i].firstChild || childNodes[i];
OpenLayers.Util.modifyDOMElement(element, null, null, null,
null, null, null, opacity);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Renderer/SVG.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
*/
createDefs: function() {
var defs = this.nodeFactory(this.container.id + "_defs", "defs");
this.rendererRoot.insertBefore(defs, this.root);
this.rendererRoot.appendChild(defs);
return defs;
},

Expand Down
2 changes: 1 addition & 1 deletion lib/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -5256,7 +5256,7 @@ OpenLayers.Renderer.SVG2 = OpenLayers.Class(OpenLayers.Renderer.NG, {
*/
createDefs: function() {
var defs = this.nodeFactory(this.container.id + "_defs", "defs");
this.rendererRoot.insertBefore(defs, this.root);
this.rendererRoot.appendChild(defs);
return defs;
},

Expand Down

0 comments on commit a57c56e

Please sign in to comment.