mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out the videocontrols piece of bug 1231828 due to b2g breakage and add to the ignore list. r=backout
This commit is contained in:
parent
57f5370897
commit
a8294561b9
@ -195,6 +195,7 @@ toolkit/components/places/**
|
||||
|
||||
# Uses preprocessing
|
||||
toolkit/content/contentAreaUtils.js
|
||||
toolkit/content/widgets/videocontrols.xml
|
||||
toolkit/components/jsdownloads/src/DownloadIntegration.jsm
|
||||
toolkit/components/search/nsSearchService.js
|
||||
toolkit/components/url-classifier/**
|
||||
|
@ -794,18 +794,16 @@
|
||||
},
|
||||
|
||||
seekToPosition : function(newPosition) {
|
||||
let { AppConstants } =
|
||||
Components.utils.import("resource://gre/modules/AppConstants.jsm", {});
|
||||
newPosition /= 1000; // convert from ms
|
||||
this.log("+++ seeking to " + newPosition);
|
||||
if (AppConstants.platform == "gonk") {
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// We use fastSeek() on B2G, and an accurate (but slower)
|
||||
// seek on other platforms (that are likely to be higher
|
||||
// perf).
|
||||
this.video.fastSeek(newPosition);
|
||||
} else {
|
||||
#else
|
||||
this.video.currentTime = newPosition;
|
||||
}
|
||||
#endif
|
||||
},
|
||||
|
||||
setVolume : function(newVolume) {
|
||||
@ -1254,24 +1252,22 @@
|
||||
if (!this.video.hasAttribute("controls"))
|
||||
return;
|
||||
|
||||
let { AppConstants } =
|
||||
Components.utils.import("resource://gre/modules/AppConstants.jsm", {});
|
||||
var keystroke = "";
|
||||
if (event.altKey)
|
||||
keystroke += "alt-";
|
||||
if (event.shiftKey)
|
||||
keystroke += "shift-";
|
||||
if (AppConstants.platform == "macosx") {
|
||||
#ifdef XP_MACOSX
|
||||
if (event.metaKey)
|
||||
keystroke += "accel-";
|
||||
if (event.ctrlKey)
|
||||
keystroke += "control-";
|
||||
} else {
|
||||
#else
|
||||
if (event.metaKey)
|
||||
keystroke += "meta-";
|
||||
if (event.ctrlKey)
|
||||
keystroke += "accel-";
|
||||
}
|
||||
#endif
|
||||
|
||||
switch (event.keyCode) {
|
||||
case KeyEvent.DOM_VK_UP:
|
||||
|
Loading…
Reference in New Issue
Block a user