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
use std::cell::RefCell; | |
struct D { | |
d: RefCell<i32>, | |
} | |
impl D { | |
fn get(&self) -> Option<i32> { | |
Some(*self.d.borrow()) | |
} |
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
import itertools | |
import json | |
import sys | |
def rr_trace_directory(output): | |
for data in reversed(output): | |
if "action" in data and data["action"] == "process_output" and \ | |
"Saving execution" in data["data"]: | |
return data["data"][data["data"].index('`')+1:-2] | |
raise "no rr trace found for process %s" % output[0]["process"] |
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
(view as text) | |
./mach build --rel --target=aarch64-unknown-linux-gnu | |
in dir /home/servo/buildbot/slave/arm64/build (timeout 1200 secs) | |
watching logfiles {} | |
argv: ['./mach', 'build', '--rel', '--target=aarch64-unknown-linux-gnu'] | |
environment: | |
BUILD_TARGET=aarch64-unknown-linux-gnu | |
CARGO_HOME=/home/servo/.cargo | |
CC=aarch64-linux-gnu-gcc |
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
(view as text) | |
./mach build --rel --target=aarch64-unknown-linux-gnu | |
in dir /home/servo/buildbot/slave/arm64/build (timeout 1200 secs) | |
watching logfiles {} | |
argv: ['./mach', 'build', '--rel', '--target=aarch64-unknown-linux-gnu'] | |
environment: | |
BUILD_TARGET=aarch64-unknown-linux-gnu | |
CARGO_HOME=/home/servo/.cargo | |
CC=aarch64-linux-gnu-gcc |
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
let num_h_tiles = tile.sheet.sheet_size.0; | |
let tile_w = tile.sheet.tile_size.0; | |
let tile_h = tile.sheet.tile_size.1; | |
let src_x = tile.index % num_h_tiles * tile_w; | |
let src_y = tile.index / num_h_tiles * tile_h; | |
let image = Image::new() | |
.src_rect([src_x as i32, | |
src_y as i32, | |
tile_w as i32, |
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
import subprocess | |
import re | |
import sys | |
print 'building...' | |
try: | |
output = subprocess.check_output(["ninja", "-C", "out/Default", "chrome"], | |
stderr=subprocess.STDOUT, | |
shell=False) | |
print 'no errors found!' |
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
rust-url diff: | |
diff --git a/Cargo.toml b/Cargo.toml | |
index b4fb880..fd147f3 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -1,7 +1,7 @@ | |
[package] | |
name = "url" | |
-version = "1.2.3" |
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
12:46 <jdm> bz: would the source browsing context of the first navigation in https://pastebin.mozilla.org/8921884 be the child browsing context? | |
12:46 <smaug> bkelly: I'm just wondering if we could simplify the stuff here. (I haven't yet started to look at your patches) | |
12:47 <bz> jdm: um... | |
12:47 <bkelly> smaug: my patches do simplify that | |
12:47 <smaug> k | |
12:47 <bz> jdm: https://github.com/whatwg/html/issues/1130 | |
12:47 <bz> jdm: But what are you really asking? | |
12:47 <jdm> bz: yeah, ajeffrey found that issue as a result of a discussion of how to handle this case in servo | |
12:48 <bkelly> smaug: nsDOMWindowUtils() was using the defaults from SuspendTimeouts before bug 1178721... the default happened to be freezing children | |
12:48 <firebot> https://bugzil.la/1178721 — FIXED, [email protected] — Worker should not be frozen when events are suspended. |
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
Many FOSS projects find it difficult to grow beyond a small team of core contributors, but this does not need to be the case. There are tried and true ways to lower the barrier to entry and increase the potential pool of contributors. Joshua Matthews presents a five-point plan that provides a solid foundation for encouraging new contributors. |
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
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */ | |
#![allow(non_camel_case_types,non_upper_case_globals,unused_imports,unused_variables,unused_assignments)] | |
use core::nonzero::NonZero; | |
use dom; | |
use dom::bindings; | |
use dom::bindings::callback::CallSetup; | |
use dom::bindings::callback::CallbackContainer; | |
use dom::bindings::callback::CallbackFunction; | |
use dom::bindings::callback::CallbackInterface; |