Remove workarounds for Chromium < 34.

This commit is contained in:
ccd0 2015-06-12 23:49:00 -07:00
parent 0bfbfc6b18
commit 0def797cf9
3 changed files with 1 additions and 30 deletions

View File

@ -38,7 +38,7 @@
"dev": " dev"
},
"min": {
"chrome": "32",
"chrome": "34",
"firefox": "26",
"greasemonkey": "1.14"
}

View File

@ -1752,13 +1752,6 @@ grunt.file.expand('src/General/img/links/*.png').map(function(file) {
}
.gal-fit-height .gal-image img,
.gal-fit-height .gal-image video {
/*
Chrome doesn't support viewpoint units in calc()
http://bugs.chromium.org/168840
"It looks like the original author of viewport units in WebKit is not coming back to fix this stuff."
Well, fuck.
*/
max-height: 95vh;
max-height: calc(100vh - 25px);
}
.gal-image iframe {

View File

@ -1,19 +1,6 @@
Polyfill =
init: ->
@notificationPermission()
@toBlob()
@visibility()
notificationPermission: ->
return if !window.Notification or 'permission' of Notification or !window.webkitNotifications
Object.defineProperty Notification, 'permission',
get: ->
switch webkitNotifications.checkPermission()
when 0
'granted'
when 1
'default'
when 2
'denied'
toBlob: ->
HTMLCanvasElement::toBlob or= (cb) ->
data = atob @toDataURL()[22..]
@ -23,12 +10,3 @@ Polyfill =
for i in [0...l] by 1
ui8a[i] = data.charCodeAt i
cb new Blob [ui8a], type: 'image/png'
visibility: ->
# page visibility API
return if 'visibilityState' of d
Object.defineProperties HTMLDocument.prototype,
visibilityState:
get: -> @webkitVisibilityState
hidden:
get: -> @webkitHidden
$.on d, 'webkitvisibilitychange', -> $.event 'visibilitychange'