Document moved to: https://github.com/servo/servo/blob/master/HACKING_QUICKSTART.md
This file contains hidden or 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
| set -g default-terminal "screen-256color" | |
| set -g status-utf8 on | |
| bind M source-file ~/.tmux/mac.session | |
| bind L source-file ~/.tmux/linux.session | |
| # set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
| # THEME | |
| set -g status-bg black |
This file contains hidden or 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
| /* | |
| * bug 814641 - [toolbox] Panels appear behind the devtools window after undocking | |
| * STR: | |
| * Run this browser scratchpad. | |
| * click on "open". You see an arrow panel. | |
| * Move your mouse over it, see the spinning cursor. | |
| * click swap to swap the frames. | |
| * click on "open". You do _NOT_ see the panel. | |
| * Move your mouse where it should have appeared. See the spinning cursor. | |
| */ |
More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies:
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://code.jquery.com/pep/0.4.2/pep.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script> | |
| <script src="https://preview.babylonjs.com/ammo.js"></script> | |
| <script src="https://preview.babylonjs.com/cannon.js"></script> | |
| <script src="https://preview.babylonjs.com/Oimo.js"></script> | |
| <script src="https://preview.babylonjs.com/gltf_validator.js"></script> | |
| <script src="https://preview.babylonjs.com/earcut.min.js"></script> |
This file contains hidden or 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
| Compiling script v0.0.1 (/Users/paul/git/servo/components/script) | |
| Completed script v0.0.1 custom-build (run) in 6.4s | |
| Compiling layout_thread_2013 v0.0.1 (/Users/paul/git/servo/components/layout_thread) | |
| Compiling libservo v0.0.1 (/Users/paul/git/servo/components/servo) | |
| Completed layout_thread_2013 v0.0.1 in 7.7s | |
| Completed libservo v0.0.1 in 7.6s | |
| Completed script v0.0.1 in 137.1s | |
| Compiling servo v0.0.1 (/Users/paul/git/servo/ports/glutin) | |
| error: linking with `cc` failed: exit code: 1 | |
| | |
This file contains hidden or 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
| /** | |
| * How to have floating scrollbars in Firefox (Linux, Windows & Mac). | |
| * Screenshot: http://i.imgur.com/bn44L.png | |
| * You need Firefox > 18. Just run this code in a browser-scratchpad: | |
| * | |
| * Ping me on Twitter (@paulrouget) if you run into problems. | |
| * | |
| * 1. Go to about:config - Set devtools.chrome.enabled to true | |
| * 2. Starts Scratchpad (Shift-F4) | |
| * 3. In Scratchpad's menubar, check "Environment > Browser" |
This file contains hidden or 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
| #include <stdarg.h> | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| /** | |
| * Servo options | |
| */ | |
| typedef struct { | |
| const char *args; |
This file contains hidden or 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
| Bindgen generates this struct: | |
| #[repr(C)] | |
| #[derive(Debug, Copy, Clone)] | |
| pub struct pthread_mutex_t { | |
| pub value: ::std::os::raw::c_int, | |
| } | |
| That's valid and it works, but everytime I want to use | |
| this `pthread_mutex_t` type with `libc::pthread_mutex_lock()` |
This file contains hidden or 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
| impl VRDisplay for VRExternalDisplay { | |
| fn data(&self) -> VRDisplayData { | |
| let mut data = VRDisplayData::default(); | |
| let state: &mozgfx::VRDisplayState = &self.shmem().state.displayState; | |
| data.display_name = state.mDisplayName.iter().map(|x| *x as char).collect(); | |
| data.display_id = self.display_id; | |
| data.connected = state.mIsConnected; | |
| // FIXME: better option than != 0? |
NewerOlder