mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 719732 - /*global */ comments in Tilt's codebase add more confusion than help; r=rcampbell
This commit is contained in:
parent
8e9f827c8d
commit
130c9d59ba
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, Services, TiltGL, TiltUtils, TiltVisualizer */
|
||||
"use strict";
|
||||
|
||||
const Cu = Components.utils;
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, Services, TiltMath, TiltUtils, mat4 */
|
||||
"use strict";
|
||||
|
||||
const Cc = Components.classes;
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
const Cu = Components.utils;
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, Services, XPCOMUtils, LayoutHelpers */
|
||||
"use strict";
|
||||
|
||||
const Cc = Components.classes;
|
||||
|
@ -36,9 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, Services, ChromeWorker */
|
||||
/*global TiltGL, TiltMath, EPSILON, vec3, mat4, quat4, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
const Cu = Components.utils;
|
||||
@ -508,7 +505,7 @@ TiltVisualizer.Presenter.prototype = {
|
||||
* @param {Object} aData
|
||||
* object containing the necessary mesh verts, texcoord etc.
|
||||
*/
|
||||
setupMesh: function TVP_setupMesh(aData) /*global TiltVisualizerStyle */
|
||||
setupMesh: function TVP_setupMesh(aData)
|
||||
{
|
||||
let renderer = this.renderer;
|
||||
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global Components, TiltMath */
|
||||
"use strict";
|
||||
|
||||
const Cu = Components.utils;
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global self*/
|
||||
"use strict";
|
||||
|
||||
const SIXTEEN_OVER_255 = 16 / 255;
|
||||
|
@ -36,8 +36,6 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
***** END LICENSE BLOCK *****/
|
||||
|
||||
/*global self*/
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, Tilt */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,10 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, Tilt, EventUtils, InspectorUI */
|
||||
/*global INITIALIZING, INITIALIZED, DESTROYING, BEFORE_DESTROYED, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let tabEvents = "";
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, Tilt, SHOWN, HIDDEN, INITIALIZING, DESTROYING, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let tab0, tab1;
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt, Tilt */
|
||||
"use strict";
|
||||
|
||||
let tab0, tab1, tab2;
|
||||
|
@ -1,10 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, Tilt, TiltUtils, TiltVisualizer, InspectorUI */
|
||||
/*global Ci, INITIALIZING, DESTROYED, INSPECTOR_OPENED */
|
||||
"use strict";
|
||||
|
||||
let id;
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Tilt, TiltUtils, TiltVisualizer */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, Tilt, TiltUtils, InspectorUI, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, Tilt, TiltUtils, InspectorUI, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, Tilt, TiltUtils, InspectorUI, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, waitForExplicitFinish, executeSoon, finish */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, InspectorUI, TiltVisualizer, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
@ -104,7 +100,7 @@ function performTest(canvas, arcball, callback) {
|
||||
}, Math.random() * 1000);
|
||||
}
|
||||
|
||||
function cleanup() { /*global gBrowser */
|
||||
function cleanup() {
|
||||
info("Cleaning up arcball reset test.");
|
||||
|
||||
Services.obs.removeObserver(cleanup, DESTROYED);
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, waitForExplicitFinish, executeSoon, finish */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, InspectorUI, TiltVisualizer, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
@ -102,7 +98,7 @@ function performTest(canvas, arcball, callback) {
|
||||
}, Math.random() * 1000);
|
||||
}
|
||||
|
||||
function cleanup() { /*global gBrowser */
|
||||
function cleanup() {
|
||||
info("Cleaning up arcball reset test.");
|
||||
|
||||
Services.obs.removeObserver(cleanup, DESTROYED);
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApprox, isApproxVec, vec3, quat4 */
|
||||
/*global TiltVisualizer */
|
||||
"use strict";
|
||||
|
||||
function cloneUpdate(update) {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isEqualVec, isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, vec3, mat4, quat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, isWebGLSupported, createCanvas, TiltGL */
|
||||
/*global WebGLRenderingContext, WebGLProgram */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isnot, info, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isnot, info, isWebGLSupported, createCanvas, TiltGL */
|
||||
"use strict";
|
||||
|
||||
let isWebGLAvailable;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApprox, isApproxVec, TiltMath */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApproxVec, vec3, mat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApproxVec, mat3 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApprox, isApproxVec, mat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApproxVec, mat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApprox, isApproxVec, quat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isApproxVec, quat4 */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, InspectorUI, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, InspectorUI, NODE_REMOVED, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let presenter;
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, InspectorUI, HIGHLIGHTING, UNHIGHLIGHTING, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let presenter;
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, InspectorUI, HIGHLIGHTING, UNHIGHLIGHTING, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let presenter;
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, InspectorUI, HIGHLIGHTING, UNHIGHLIGHTING, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
let presenter;
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, gBrowser, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, waitForExplicitFinish, finish, gBrowser */
|
||||
/*global Cu, LayoutHelpers, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
Cu.import("resource:///modules/devtools/LayoutHelpers.jsm");
|
||||
@ -60,7 +57,7 @@ function test() {
|
||||
|
||||
let nodeCoordinates = LayoutHelpers.getRect(
|
||||
iframe.contentDocument.getElementById("test-div"), iframe.contentWindow);
|
||||
|
||||
|
||||
let frameOffset = LayoutHelpers.getIframeContentOffset(iframe);
|
||||
let frameRect = iframe.getBoundingClientRect();
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, isnot, gBrowser, TiltUtils */
|
||||
"use strict";
|
||||
|
||||
let someObject = {
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, isApproxVec, isTiltEnabled, isWebGLSupported, gBrowser*/
|
||||
/*global TiltVisualizer */
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
|
@ -1,9 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global ok, is, info, waitForExplicitFinish, finish, executeSoon, gBrowser */
|
||||
/*global isApprox, isTiltEnabled, isWebGLSupported, createTab, createTilt */
|
||||
/*global Services, EventUtils, TiltUtils, InspectorUI, DESTROYED */
|
||||
"use strict";
|
||||
|
||||
const ZOOM = 2;
|
||||
|
@ -1,8 +1,5 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/*global Services, Components, gBrowser, executeSoon, info */
|
||||
/*global InspectorUI, Tilt, TiltGL, EPSILON */
|
||||
"use strict";
|
||||
|
||||
let tempScope = {};
|
||||
|
Loading…
Reference in New Issue
Block a user