This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wrap(aObject) | |
{ | |
if (aObject === undefined || aObject === null) { | |
return aObject; | |
} | |
let type = typeof(aObject); | |
if (type == "string" || type == "number" || type == "boolean" || type == "function") { | |
return aObject; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a JavaScript Scratchpad. | |
* | |
* Enter some JavaScript, then Right Click or choose from the Execute Menu: | |
* 1. Run to evaluate the selected text, | |
* 2. Inspect to bring up an Object Inspector on the result, or, | |
* 3. Display to insert the result in a comment after the selection. | |
*/ | |
function binarySearch(key, array) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open one (and only) Scratchpad in chrome/browser context, then: | |
let scratchpadWindow = Services.wm.getEnumerator("devtools:scratchpad").getNext(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> There's a lot of fundamental differences between Lua and Javascript, even at | |
> the syntax level. | |
Syntax differences are easy to come by. The problem are semantics. | |
Don't get me wrong, but I got the impressions this approach is a bit | |
naive missing the experience from larger projects in both languages. | |
* JS arrays are indexed with 0. Lua with 1, resulting at least with | |
issues with length operators. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ New ] [ Import ] | Search | | |
[.] default.css 28 rules. | |
[.] extra.css 9 rules. | |
__________________________________ | |
*Style sheets* | Overview | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gfx/thebes/nsCoreAnimationSupport.mm b/gfx/thebes/nsCoreAnimationSupport.mm | |
index 3f85894..ca16498 100644 | |
--- a/gfx/thebes/nsCoreAnimationSupport.mm | |
+++ b/gfx/thebes/nsCoreAnimationSupport.mm | |
@@ -451,6 +451,7 @@ nsresult nsCARenderer::SetupRenderer(void *aCALayer, int aWidth, int aHeight) { | |
CARenderer* caRenderer = nsnull; | |
CGLPixelFormatAttribute attributes[] = { | |
+ kCGLPFANoRecovery, | |
kCGLPFAAccelerated, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c++ -o nsTimerImpl.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/cedric/tmp/stack/mozilla-all/config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -D_IMPL_NS_COM -I/home/cedric/tmp/stack/mozilla-all/xpcom/threads/../components -I/home/cedric/tmp/stack/mozilla-all/xpcom/threads -I. -I../../dist/include -I../../dist/include/nsprpub -I/home/cedric/tmp/stack/mozilla-all/obj-x86_64-unknown-linux-gnu-DEBUG-firefox/dist/include/nspr -I/home/cedric/tmp/stack/mozilla-all/obj-x86_64-unknown-linux-gnu-DEBUG-firefox/dist/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/devtools/styleeditor/StyleEditorChrome.jsm b/browser/devtools/styleeditor/StyleEditorChrome.jsm | |
index f8eb4b9..dbff59d 100644 | |
--- a/browser/devtools/styleeditor/StyleEditorChrome.jsm | |
+++ b/browser/devtools/styleeditor/StyleEditorChrome.jsm | |
@@ -402,6 +402,7 @@ StyleEditorChrome.prototype = { | |
data: { | |
editor: aEditor | |
}, | |
+ disableAnimations: this._alwaysDisableAnimations, | |
ordinal: aEditor.styleSheetIndex, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/devtools/styleeditor/test/browser_styleeditor_enabled.js b/browser/devtools/styleeditor/test/browser_styleeditor_enabled.js | |
index f32bf22..4d5b9e3 100644 | |
--- a/browser/devtools/styleeditor/test/browser_styleeditor_enabled.js | |
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_enabled.js | |
@@ -10,11 +10,14 @@ function test() | |
{ | |
waitForExplicitFinish(); | |
+ let count = 0; | |
addTabAndLaunchStyleEditorChromeWhenLoaded(function (aChrome) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== BEFORE FOO() === | |
--- SCRIPT :0 --- | |
loc counts x line op | |
----- ---------------- ---- -- | |
main: | |
00000:0/0/0/0/0/0 x 0 stop | |
--- END SCRIPT :0 --- | |
--- SCRIPT :0 --- | |
loc counts x line op |
NewerOlder