Remove workarounds for Chromium < 34.
This commit is contained in:
parent
0bfbfc6b18
commit
0def797cf9
@ -38,7 +38,7 @@
|
|||||||
"dev": " dev"
|
"dev": " dev"
|
||||||
},
|
},
|
||||||
"min": {
|
"min": {
|
||||||
"chrome": "32",
|
"chrome": "34",
|
||||||
"firefox": "26",
|
"firefox": "26",
|
||||||
"greasemonkey": "1.14"
|
"greasemonkey": "1.14"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 img,
|
||||||
.gal-fit-height .gal-image video {
|
.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);
|
max-height: calc(100vh - 25px);
|
||||||
}
|
}
|
||||||
.gal-image iframe {
|
.gal-image iframe {
|
||||||
|
|||||||
@ -1,19 +1,6 @@
|
|||||||
Polyfill =
|
Polyfill =
|
||||||
init: ->
|
init: ->
|
||||||
@notificationPermission()
|
|
||||||
@toBlob()
|
@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: ->
|
toBlob: ->
|
||||||
HTMLCanvasElement::toBlob or= (cb) ->
|
HTMLCanvasElement::toBlob or= (cb) ->
|
||||||
data = atob @toDataURL()[22..]
|
data = atob @toDataURL()[22..]
|
||||||
@ -23,12 +10,3 @@ Polyfill =
|
|||||||
for i in [0...l] by 1
|
for i in [0...l] by 1
|
||||||
ui8a[i] = data.charCodeAt i
|
ui8a[i] = data.charCodeAt i
|
||||||
cb new Blob [ui8a], type: 'image/png'
|
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'
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user