Remove unused ol.dom.setTransform()

This commit is contained in:
Tim Schaub
2016-08-31 15:29:39 -06:00
parent 0a60eced25
commit 0ea5ded807
2 changed files with 0 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
goog.provide('ol.dom'); goog.provide('ol.dom');
goog.require('ol'); goog.require('ol');
goog.require('ol.has');
goog.require('ol.vec.Mat4'); goog.require('ol.vec.Mat4');
@@ -30,25 +29,6 @@ ol.dom.createCanvasContext2D = function(opt_width, opt_height) {
}; };
/**
* @param {Element} element Element.
* @param {string} value Value.
*/
ol.dom.setTransform = function(element, value) {
var style = element.style;
style.WebkitTransform = value;
style.MozTransform = value;
style.OTransform = value;
style.msTransform = value;
style.transform = value;
// IE 9+ seems to assume transform-origin: 100% 100%; for some unknown reason
if (ol.has.IE) {
element.style.transformOrigin = '0 0';
}
};
/** /**
* Get the current computed width for the given element including margin, * Get the current computed width for the given element including margin,
* padding and border. * padding and border.

View File

@@ -7,15 +7,6 @@ var olGlobal = ol.global;
var ua = typeof navigator !== 'undefined' ? var ua = typeof navigator !== 'undefined' ?
navigator.userAgent.toLowerCase() : ''; navigator.userAgent.toLowerCase() : '';
var ie = ua.match(/msie ([0-9]{1,}[\.0-9]{0,})/);
var trident = ua.match(/trident\/([0-9]{1,}[\.0-9]{0,})/);
/**
* User agent string says we are dealing with IE >= 9 as browser.
* @type {boolean}
*/
ol.has.IE = !!(ie && parseFloat(ie[1]) >= 9 || trident && parseFloat(trident[1]) >= 6);
/** /**
* User agent string says we are dealing with Firefox as browser. * User agent string says we are dealing with Firefox as browser.
* @type {boolean} * @type {boolean}