Skip to content

Commit 1a1725f

Browse files
committed
Remove checks for mobile FF. The devicePixelRatio bug it references has long since been fixed. Fixes google#459
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=99066232
1 parent 6b5073c commit 1a1725f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

closure/goog/dom/dom.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,13 +2180,7 @@ goog.dom.getActiveElement = function(doc) {
21802180
*/
21812181
goog.dom.getPixelRatio = function() {
21822182
var win = goog.dom.getWindow();
2183-
2184-
// devicePixelRatio does not work on Mobile firefox.
2185-
// TODO(user): Enable this check on a known working mobile Gecko version.
2186-
// Filed a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=896804
2187-
var isFirefoxMobile = goog.userAgent.GECKO && goog.userAgent.MOBILE;
2188-
2189-
if (goog.isDef(win.devicePixelRatio) && !isFirefoxMobile) {
2183+
if (goog.isDef(win.devicePixelRatio)) {
21902184
return win.devicePixelRatio;
21912185
} else if (win.matchMedia) {
21922186
return goog.dom.matchesPixelRatio_(.75) ||

0 commit comments

Comments
 (0)