Commit Graph

4648 Commits

Author SHA1 Message Date
Corey Farwell
1b3761b963 servo: Merge #7199 - Prefer if..let over if..is_some..unwrap in codegen (from frewsxcv:codegen-if-let); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 2e1ca10eeaf6a62326c1b864345f624ed2974a52
2015-08-13 15:35:21 -06:00
Corey Farwell
9ea1ff0919 servo: Merge #7196 - Avoid marking codegen method bodies as unsafe twice (from frewsxcv:double-unsafe); r=jdm
`CGAbstractMethod` takes a couple boolean parameters, among others:

* `extern`: will mark the method as `unsafe` and `extern`
* `unsafe`: will wrap the method body in an `unsafe` block

Passing both as `True` should not mark it as `unsafe` twice.

Example from a generated `HTMLCollectionBinding.rs`:

Before:

```
unsafe extern fn get_length(..) -> u8 {
    unsafe {
        // code here
    }
}
```

After

```
unsafe extern fn get_length(..) -> u8 {
    // code here
}
```

Source-Repo: https://github.com/servo/servo
Source-Revision: 289decb064b44937f570fdc299de9af961296dd6
2015-08-13 15:00:37 -06:00
Ms2ger
5b81bb9928 servo: Merge #7192 - Implement a ProfilerActor struct (from Ms2ger:profiler); r=jdm
This is sufficient to make the profiler tab show up in Firefox's devtools.

Source-Repo: https://github.com/servo/servo
Source-Revision: 07716780fc805aea63285337ee15e9e56acb47c7
2015-08-13 14:25:38 -06:00
Ms2ger
708a504b24 servo: Merge #7190 - Correct the default value for Node#cloneNode's deep argument (from Ms2ger:node-clone); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 42d74324e22be0f105d2412938df8b05c20feff6
2015-08-13 13:51:06 -06:00
Bogdan Cuza
b3e4dcef5f servo: Merge #7097 - Measure heap memory usage for more types. Fixes #6951 (from boghison:memtypes); r=jdm
Also adds HeapSizeOf implementations/derive for some types. I've used "Cannot calculate Heap size" as a reason everywhere, because my imagination is rather limited. If you'd like me to change this message for specific types, please write something like this: "Trusted - Cannot calculate Heap size for Trusted" so that it would be easier for me to replace them through a script :)

Source-Repo: https://github.com/servo/servo
Source-Revision: a03616f379c255cc6c9b6e1d04dd7d98bd9926ce
2015-08-13 13:16:14 -06:00
Josh Matthews
359f94da09 servo: Merge #7132 - Document the use and meaning of the devtools control messages. Fixes … (from jdm:docenum); r=ms2ger
…#6922.

Source-Repo: https://github.com/servo/servo
Source-Revision: f3b7c5cb4b0fab20db51b7560c3b3bb2d115be69
2015-08-13 12:41:48 -06:00
Patrick Walton
9f2164d29e servo: Merge #7181 - layout: Stop double-counting inline margins on <input type=button> and friends (from pcwalton:input-button-margins); r=mbrubeck
Improves the Google home page.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 94c8dcd575a5187e02ec043c686b1cdfa6b30ba6
2015-08-13 11:45:20 -06:00
Ms2ger
e54fe99057 servo: Merge #7189 - Deny unsafe code in compositing (from Ms2ger:unsafe-compositing); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 7f0e62b6fbc8ae03ac77750ee4568e66b794f108
2015-08-13 07:14:22 -06:00
Ms2ger
c2bfd904e1 servo: Merge #7187 - Use Iterator::any in collect_old_layers (from Ms2ger:use-any); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 9fda72d60fcc2db5c4af37b58621071305858018
2015-08-13 02:55:10 -06:00
Glenn Watson
7bd4cf89e8 servo: Merge #7186 - Enable item clipping on normal transform layers. Fixes rounded corners on layers with 2d transforms (from glennw:rounded-clip); r=pcwalton
Needed for #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: c1cc2c1a27cb6887934ab5088cccdb33434a680b
2015-08-13 01:53:44 -06:00
Glenn Watson
071c92b082 servo: Merge #7183 - Add fix / hack for compositor repainting tiles on scroll layers that have stale clipping results (from glennw:scroll-clipping); r=pcwalton
Needed for #6643. Fixes #7153.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f55af119033e7644d560ca607ad7a89916f53e6
2015-08-12 22:56:01 -06:00
Corey Farwell
a038876aad servo: Merge #6867 - Utilize match guard; make methods more similar (from frewsxcv:match-guard-and-similar); r=jdm
Make the structure for the `stretchiness` and `boldness` methods more
similar

Source-Repo: https://github.com/servo/servo
Source-Revision: 55a9abdf358dd8f05b06849f0d39b4e8ca8f6ba3
2015-08-12 22:13:16 -06:00
Glenn Watson
468a3dca28 servo: Merge #7182 - Ensure compositor layers are collected when removed from layout (from glennw:collect-old-layers); r=pcwalton
Needed for #6643 and #7134.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1542a879a544ca4d32256748b1819567a5c3b6fa
2015-08-12 18:15:40 -06:00
Ms2ger
4d27b093e6 servo: Merge #7176 - Merge the fragment handling into handle_navigate (from Ms2ger:navigate-fragment); r=jdm
This is handled in the 'navigate' algorithm in the specification.

Source-Repo: https://github.com/servo/servo
Source-Revision: e44ae6404fd25ed51a543141ca8f9cc2a3443817
2015-08-12 12:22:47 -06:00
Patrick Walton
65059b8539 servo: Merge #7150 - layout: Take relative position offsets for inlines and inline-blocks into account only once (from pcwalton:position-relative-inline-block); r=mbrubeck
There were two bugs here: (1) relative position applied to
scanned/unscanned text fragments independently of the container element
that applied that relative position, causing double-counting; (2)
relative position applied to inline block fragments independently of the
wrapped block itself, causing double-counting.

Closes #7067.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 0bfde427e6a77d09d75b5a6e228c7b25f063395f
2015-08-12 09:34:26 -06:00
Ms2ger
da9bb62e1d servo: Merge #7171 - Remove ScriptControlChan (from Ms2ger:ScriptControlChan); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3ad49fc689ceb6067cd6dea1aa0d004321704b8e
2015-08-12 08:28:29 -06:00
Ms2ger
05b3751faf servo: Merge #7170 - Avoid unwrap calls in handle_navigate_msg (from Ms2ger:unwrap-constellation); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 54300a9c73f7c8289604ab9a957419577e10c1ac
2015-08-12 07:29:47 -06:00
Ms2ger
8ca4e6dabe servo: Merge #7167 - Disallow unsafe code in the devtools and devtools_traits crates (from Ms2ger:unsafe-devtools); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 2f0a9e7fce9b8d3ee5ddf0cc5431547462378ff0
2015-08-12 06:48:07 -06:00
wilmoz
5b8f03dca3 servo: Merge #7159 - fixes test-wpt cannot be run from anywhere but the root (from wilcus:master); r=Ms2ger
Fixes #7085

Source-Repo: https://github.com/servo/servo
Source-Revision: 6dad29eb433ca889091a923c2d861189ebb0643c
2015-08-12 00:13:35 -06:00
Greg Guthe
bdcbed2f15 servo: Merge #7164 - Use one version of serde_macros (from g-k:one-serde-macros-0.5.1); r=mbrubeck
Refs: https://github.com/servo/servo/issues/7130

Ran `./mach update-cargo -a` and only seeing version 0.5.1:

```
$ git grep serde_macros
components/canvas_traits/Cargo.toml:serde_macros = "0.5"
components/canvas_traits/lib.rs:#![plugin(serde_macros)]
components/devtools/Cargo.toml:serde_macros = "0.5"
components/devtools/lib.rs:#![plugin(serde_macros)]
components/devtools_traits/Cargo.toml:serde_macros = "0.5"
components/devtools_traits/lib.rs:#![plugin(serde_macros)]
components/gfx/Cargo.toml:serde_macros = "0.5"
components/gfx/lib.rs:#![plugin(serde_macros)]
components/layout/Cargo.toml:serde_macros = "0.5"
components/layout_traits/Cargo.toml:serde_macros = "0.5"
components/layout_traits/lib.rs:#![plugin(serde_macros)]
components/msg/Cargo.toml:serde_macros = "0.5"
components/msg/lib.rs:#![plugin(serde_macros, plugins)]
components/net_traits/Cargo.toml:serde_macros = "0.5"
components/net_traits/lib.rs:#![plugin(serde_macros)]
components/profile_traits/Cargo.toml:serde_macros = "0.5"
components/profile_traits/lib.rs:#![plugin(serde_macros)]
components/script_traits/Cargo.toml:serde_macros = "0.5"
components/script_traits/lib.rs:#![plugin(serde_macros)]
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock:name = "serde_macros"
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/servo/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
components/style/Cargo.toml:serde_macros = "0.5"
components/style/lib.rs:#![plugin(serde_macros)]
components/style/lib.rs:#![plugin(serde_macros)]
components/util/Cargo.toml:serde_macros = "0.5"
components/util/lib.rs:#![plugin(serde_macros)]
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock:name = "serde_macros"
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/cef/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock:name = "serde_macros"
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
ports/gonk/Cargo.lock: "serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
```

Source-Repo: https://github.com/servo/servo
Source-Revision: fa83cfb4b501d3731392ba82de76933416fc31a8
2015-08-11 16:43:09 -06:00
Maciej Skrzypkowski
2a75a8c49e servo: Merge #6757 - Implementing document.hasFocus method, needs tests. #6475 (from mskrzypkows:document_hasFocus); r=jdm
I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c5158587d997c69ce3c76062b369b8f0714306e
2015-08-11 15:35:21 -06:00
Patrick Walton
05e3c47b79 servo: Merge #7024 - layout: Rewrite whitespace stripping (from pcwalton:whitespace-stripping); r=mbrubeck
This patch makes Servo unconditionally strip whitespace before text run
scanning (assuming that the `white-space` property allows it). Whitespace
stripping during reflow is now only used for handling whitespace at the ends of
lines; reflow now never attempts to handle ignorable whitespace.

Many CSS tests pass now. There are some new failures, however.

The following reference tests now fail due to a pre-existing bug whereby
whitespace is used to calculate the position of inline hypothetical boxes for
elements with `display: inline; position: absolute`:

* `absolute-replaced-height-036.htm`
* `vertical-align-sub-001.htm`
* `vertical-align-super-001.htm`

The following reference tests fail due to a pre-existing bug whereby we don't
handle `font-size: 0` properly in inline reflow:

* `font-size-zero-1.htm`
* `font-size-zero-2.htm`

The following reference test fails due to the fact that it relied on our
incorrect insertion of whitespace to make room for the black background:

* `inline-formatting-context-007.htm`

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 7dc83e7820df43b1b617ae8dcf661398b0bd0842
2015-08-11 12:57:02 -06:00
Patrick Walton
81fce89118 servo: Merge #7137 - layout: Make absolutely-positioned elements with z-index: auto not stacking contexts (from pcwalton:absolute-stacking-contexts); r=glennw
Improves many sites.

Closes #7069.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 7ce47266acc7c23de537905746b274b4a75424fa
2015-08-11 12:22:14 -06:00
Matt Brubeck
6ad3db2453 servo: Merge #7161 - Snap rectangles to nearest pixels consistently (from mbrubeck:underline); r=pcwalton
Snapping the top-left and bottom-right corners separately can cause a rectangle to change size or even become empty when offset by a subpixel amount.  Instead, this patch snaps the top-left corner, then snaps the size to a whole pixel amount, so any rectangle of a given original size will always have the same snapped size.

Fixes #7152. r? @pcwalton or @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c528c6382ee4355f42824a7caad217c4eb8a3b0
2015-08-11 11:31:32 -06:00
David Zbarsky
aa30a38864 servo: Merge #7104 - CanvasGradient#addColorStop should throw for invalid colors and offsets (from dzbarsky:add_color_stop); r=Ms2ger
The new test failure is because the color stop has a value of 'currentColor' which we don't support yet.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9925f5f929a951f5e2545de0d5c36ee790293e1
2015-08-11 06:24:35 -06:00
wilmoz
f8de174f17 servo: Merge #7140 - Remove Message suffix from NetworkEventMessage (from wilcus:master); r=jdm
https://github.com/servo/servo/issues/7129

Source-Repo: https://github.com/servo/servo
Source-Revision: 15a73614f4ae9f7b00a44aa66d899ab4a5254114
2015-08-11 01:34:47 -06:00
David Zbarsky
1a552b51ee servo: Merge #7151 - Make CSSStyleDeclaration setters rethrow errors instead of unwrapping (from dzbarsky:style-setters); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b8d464f5dc44bdf8382bf6d7b6a5814bf440bbad
2015-08-10 23:04:34 -06:00
Patrick Walton
a95ad541cf servo: Merge #7090 - layout: Implement basic overflow: scroll functionality (from pcwalton:overflow-scroll); r=glennw
Known issues:

* Display list optimization can sometimes optimize out elements that
  should be shown. This affects the Enyo demo.

* The `overflow: scroll` container doesn't clip the inner layer properly
  when borders, border radius, etc. are present.

* `overflow-x: scroll` and `overflow-y: scroll` don't work individually;
  elements are scrolled all at once.

Note that multiple layers per stacking context aren't needed for the Enyo demo; rather the issue is that the height of the main area is being calculated incorrectly. (It looks like JS is measuring the height and poking in an explicit value that is too tall.)

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: b05b02e11fb849e1f0153d009d8fcf0501ace8dc
2015-08-10 22:29:40 -06:00
Glenn Watson
e02a85f369 servo: Merge #7147 - Fix explicit height edge case with absolute / relative nested divs (from glennw:abs-explicit-height); r=pcwalton
Needed for #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: c079c1cf6d30d6033d60e943df42fce2494790b9
2015-08-10 20:58:12 -06:00
Glenn Watson
756e30a366 servo: Merge #7141 - Update rust-layers to get 2d transform + clipping support (from glennw:2d-clipping-update); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 5af93e9ca3500a75f845614f17323d258ee72d71
2015-08-10 20:23:42 -06:00
Lars Bergstrom
f29b5dbcd3 servo: Merge #7143 - Add the Servo User Agent strings (from larsbergstrom:user_agent); r=mbrubeck
Fixes #4331. I've tested this out on desktop and Android on "the usual" sites (reddit, cnn, github, wikipedia, etc.).

r? @mbrubeck @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 049cee1b5eaba598b71620fb842662c137f7f92d
2015-08-10 18:18:27 -06:00
Brandon Fairchild
e3a0517b8d servo: Merge #7136 - Rename SendConsoleMessage to ConsoleAPI (from nerith:consoleapi); r=jdm
Fixes #7131.

Source-Repo: https://github.com/servo/servo
Source-Revision: 41166fdb5bd16e96827118b9ab5543c65418c200
2015-08-10 15:10:57 -06:00
Anthony Ramine
6660f5b499 servo: Merge #6778 - Optimise Node.childNodes (from nox:childnodes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 2b9590c5a53f273c13c6fb36f95fbf593bbffd8b
2015-08-10 14:05:02 -06:00
Corey Farwell
6dff079a37 servo: Merge #7124 - Allow Servo tests to be built/run with --release mode (from frewsxcv:test-ref-release); r=metajack
Fixes #5075

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b13a79743936f77bab11f72ef8b325946557326
2015-08-10 09:14:31 -06:00
Adrián Arroyo Calle
b5a5e11c26 servo: Merge #7125 - MIME classifier should use &[T] instead of &Vec<T> (from AdrianArroyoCalle:master); r=Ms2ger
Closes #7109

Source-Repo: https://github.com/servo/servo
Source-Revision: a91c366c06be4bf1765dc8be1c019146d5da3b48
2015-08-10 07:04:26 -06:00
Ms2ger
5763c0bede servo: Merge #7123 - Remove unused import (from Ms2ger:warnings); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 53748129321d2c439590368895765f7c93aee8c7
2015-08-10 01:35:11 -06:00
Harrison G
214a812229 servo: Merge #7101 - Allows object evaluation in devtools -- Closes #6724 (from HarryLovesCode:master); r=jdm
The purpose of this is to fix how objects were previously evaluated in
the developer tools.

- Before this, evaluating an object such as the `window` would `panic!`
- After this, evaluating an object such as the `window` outputs `[object
  Window]`

A few things to note:

- This commit contains `unsafe` code.
- This does not contain a test because the developer tools cannot be properly tested until #5971 lands.

Source-Repo: https://github.com/servo/servo
Source-Revision: f77973c903a3e08067feed3ba39cff3c6bf8ac11
2015-08-09 18:27:53 -06:00
David Zbarsky
a2c040a617 servo: Merge #7089 - Implement HTMLTableElement#createTBody (from dzbarsky:createtbody); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 44d93bc37aa8226554fc73bba20421a150b002de
2015-08-09 13:56:47 -06:00
Ms2ger
5da0b90ed4 servo: Merge #7114 - Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm (from Ms2ger:follow-hyperlink); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a74f3d1d9c09b40a81fa4410797e8c4920225c78
2015-08-09 12:10:08 -06:00
David Zbarsky
4db3b420d2 servo: Merge #7092 - Clean up and fix PutImageData (from dzbarsky:putimagedata); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 6a8bc8528498c0cbb2e50567d765a989cde2d115
2015-08-09 07:00:56 -06:00
David Zbarsky
68cd6176d8 servo: Merge #6975 - Fix getImageData with sizes < 1 pixel (from dzbarsky:get-tiny); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: dbce4c5bd8ec005ba78ac8c2f8754bd137c87f25
2015-08-09 06:32:30 -06:00
Connor Imes
36fdaa0419 servo: Merge #7105 - Some imports are used in linux only. Fixes #7088 (from connorimes:cef-7088); r=mbrubeck
Imports are used in Linux.

Source-Repo: https://github.com/servo/servo
Source-Revision: abf73995f9d0cc3fd000657fac90e2c426c132dc
2015-08-09 05:50:01 -06:00
David Zbarsky
84a4dca5a6 servo: Merge #7063 - Implement createCaption and deleteCaption on HTMLTableElement (from dzbarsky:caption); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f41834e3217bb571ead68e870ab0b1e88c4b5764
2015-08-09 04:45:28 -06:00
Adrián Arroyo Calle
8e9df46934 servo: Merge #7107 - Removed unused object_to_string method (from AdrianArroyoCalle:master); r=Ms2ger
Closes #7100

Source-Repo: https://github.com/servo/servo
Source-Revision: 28abc55d9b55ce8488cbcba9730a0b0ff5badcee
2015-08-09 04:16:55 -06:00
Ms2ger
a173d30242 servo: Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests.
This reverts commit c315404db80c92a695531b0aa4bcf61c125a3bff, reversing
changes made to b00583bd4e7169a6b952633df718268904f2bd0c.

Source-Repo: https://github.com/servo/servo
Source-Revision: 47d6d958f58f5011742a18abcdd5a76bf4390966
2015-08-09 11:20:40 +02:00
Corey Farwell
5efbfa841e servo: Merge #7103 - Use one Python virtual environment for all mach commands (from frewsxcv:python-venv); r=metajack
*See individual commits for more information*

Source-Repo: https://github.com/servo/servo
Source-Revision: c315404db80c92a695531b0aa4bcf61c125a3bff
2015-08-08 19:42:14 -06:00
Patrick Walton
a4005fc5da servo: Merge #7102 - layout: Allow list items to be absolute containing blocks (from pcwalton:li-absolute-containing-block); r=glennw
Fixes overflowing highlight in the side menu on GitHub.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: b00583bd4e7169a6b952633df718268904f2bd0c
2015-08-08 17:16:14 -06:00
Patrick Walton
6025b53803 servo: Merge #7099 - servo: Update ipc-channel to pick up bincode support (from pcwalton:bincode); r=jdm
Large improvement in page load times, especially in debug builds.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d4d4d6dc013ee322282de7ec0effa54c8827a775
2015-08-08 10:55:00 -06:00
Ms2ger
b7fff47f1a servo: Merge #7046 - Implement a base_url getter and use it for style attributes (from Ms2ger:base-url); r=dzbarsky
Source-Repo: https://github.com/servo/servo
Source-Revision: 530d4547c945fbf120d546d6e9a31b8f3bacc78f
2015-08-08 06:53:32 -06:00
Ms2ger
4963436268 servo: Merge #7075 - Improve code around Window::load_url (from Ms2ger:load_url); r=dzbarsky
Source-Repo: https://github.com/servo/servo
Source-Revision: a0af7a1581ffaa6b40149affdd5519caa2be015f
2015-08-08 06:09:13 -06:00
Ms2ger
099b2bd2fe servo: Merge #7066 - Dispatch message events for WebSocket (from Ms2ger:ws-event); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d8b4611a79fbb8c4675d9de763280ada34e63b13
2015-08-08 03:00:50 -06:00
Michael Tremel
3551fe0b80 servo: Merge #7091 - Remove unneeded import (from mt2d2:unused_imports_devtools); r=SimonSapin
This fixes #7087.

Source-Repo: https://github.com/servo/servo
Source-Revision: 23b81326cc2ac86ef93ff067ecbfa2bce482084f
2015-08-08 02:18:34 -06:00
Patrick Walton
3142948f44 servo: Merge #7056 - layout: Introduce infrastructure for tracking, backing up, and splitting at the last known good split point, and use it for white-space: nowrap (from pcwalton:whitespace-nowrap-overflows); r=mbrubeck
Fixes overflowing tables on Wikipedia.

This infrastructure should form the basis of our fix for inline layout
of fragments that don't themselves constitute valid split points. That
will require some more work, however.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: d07cde5efccfdd1aee4456a85e51ec0d0613c4e4
2015-08-08 01:01:54 -06:00
Lars Bergstrom
aac2bcf1eb servo: Merge #7051 - Update submodules and don't call setrlimit on Android (from larsbergstrom:android_updates); r=mbrubeck
r? @mbrubeck

Fixes #6432.

Source-Repo: https://github.com/servo/servo
Source-Revision: c528039a5324ffccc620bb49ad30823a1afab013
2015-08-07 19:54:27 -06:00
Harrison G
163eb94e9f servo: Merge #7073 - Fix requestAnimationFrame timestamps in queue (from HarryLovesCode:master); r=SimonSapin
This resolves #7044 which involved callbacks in a queue not receiving the same timestamp despite the specification saying they should. An extra test was added to verify the correct behavior.

Source-Repo: https://github.com/servo/servo
Source-Revision: d36a10023a9d37a24e2eb182918d790a4b8f55e3
2015-08-07 17:14:48 -06:00
Corey Farwell
3ae2a6c4a8 servo: Merge #7076 - Remove invalid file path in ignored_files for tidying (from frewsxcv:tidy-rm-invalid-file); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: c202d7b2f6ddf5709a59643a7e62aa2f763adf11
2015-08-07 16:32:04 -06:00
Connor Imes
d598f44b6b servo: Merge #7009 - Remove typedefs DevtoolsControlChan and DevtoolsControlPort (from connorimes:remove-confusing-typedefs); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a5c7508fabb36f9f5bc14e84b5f481cf7036e5f7
2015-08-07 14:41:37 -06:00
Simon Sapin
5a1ac2d8f1 servo: Merge #7013 - Make the Ahem font available to test-css and test-wpt tests (from servo:user-stylesheets); r=mbrubeck
Add support for user stylesheets, and provide one to tests with an `@font-face` rule for it.

Fix #6195.

Many previously-failing tests now pass, and a few previously-passing now fail.

Among the latter, `font-family-013.htm` and `fonts-013.htm` are testing that the Ahem font is not used for characters it doesn’t have a glyph for. They were passing because Ahem was not available at all, and now fail because we don’t implement font fallback correctly.

The others also use Ahem, but I don’t understand yet what’s going on exactly.

Source-Repo: https://github.com/servo/servo
Source-Revision: 08987e3eda370e3eb00876c7f5efdebf3ba0265a
2015-08-07 14:05:19 -06:00
Ms2ger
47428352a3 servo: Merge #7062 - Update most dependencies (from servo:update-some); r=SimonSapin
This excludes:

* tenacious, as it has not yet been updated to the current rustc
  (Manishearth/rust-tenacious#6);
* ipc-channel, as it doesn't build on linux upstream.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49cbcc97ed56724944ef713d4edb7a2df3934500
2015-08-07 13:05:39 -06:00
James Graham
f689852d1b servo: Merge #6415 - Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched (from jgraham:dom_load); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 361d94d23ebf2897a240763d28fbb77b3d831b34
2015-08-07 11:30:33 -06:00
Simon Sapin
d54da28e96 servo: Merge #6957 - Upgrade cssparser (from servo:cssparserup); r=larsbergstrom+dzbarsky
Pick up the fix for https://github.com/servo/rust-cssparser/issues/76

`*.ini` files removal based on running `./mach test-css tests/wpt/css-tests/css21_dev/html4/*color*`, I didn’t run the whole test suite.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 9bd5291aea24f5bc2780c864d207ce1496f8525f
2015-08-07 10:48:47 -06:00
Ms2ger
9e7d051c1e servo: Merge #7000 - Remove some stray whitespace (from Ms2ger:space); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 29c12dfc56b9d2398fd2b4d26404a850b99d73dd
2015-08-07 09:40:50 -06:00
Matt Brubeck
eff608633f servo: Merge #7041 - Allow list markers to contain multiple fragments (from mbrubeck:marker_fragments); r=pcwalton
Fixes #6913. r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 568bd92236e6eee0a3dfc077dccf74e4fdc79582
2015-08-07 08:55:24 -06:00
Georg Brandl
d729f005dd servo: Merge #7007 - Fix minor typo in lint docstring (from birkenfeld:patch-1); r=Ms2ger
It checks for public, not private fields.

Source-Repo: https://github.com/servo/servo
Source-Revision: 96cb8261e648e2a9bda46263430665e2aedf2eae
2015-08-07 08:10:07 -06:00
Michael Howell
76df875017 servo: Merge #7003 - GC pause reporting (from notriddle:master); r=Ms2ger
Closes #6968.

Source-Repo: https://github.com/servo/servo
Source-Revision: b4e30da3dbf58c16703864f4bec4b0b0132084fa
2015-08-07 06:14:12 -06:00
Corey Farwell
975ba6831a servo: Merge #6993 - Remove dead Python code in binding generating code (from frewsxcv:rm-dead-codegen); r=Ms2ger
Fixes #6956

Source-Repo: https://github.com/servo/servo
Source-Revision: 9ed2df3de704261399942b82a047a6a757501d53
2015-08-07 04:51:31 -06:00
Nick Fitzgerald
c0015de506 servo: Merge #7057 - Remove unnecessary mut on variables declared in ports/gonk/src/window.rs (from fitzgen:unnecessary-mut-variables); r=jdm
Fixes #7048.

Source-Repo: https://github.com/servo/servo
Source-Revision: ec9f79067d22cf848032fef7579b36bb6a8c8b32
2015-08-07 03:09:24 -06:00
Connor Imes
98496efd1b servo: Merge #7053 - Move net_error_list from net to net_traits. Fixes #7050 (from connorimes:move-net-error-list); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 44c4bb00c1cb8645ee2fc303848a5136108e594f

--HG--
rename : servo/components/net/net_error_list.rs => servo/components/net_traits/net_error_list.rs
2015-08-07 01:55:20 -06:00
Patrick Walton
2eb8f4c179 servo: Merge #7043 - script: Make the legacy presentational attributes on <td> apply to <th> too (from pcwalton:th-width); r=Ms2ger
Makes the Google SERPs not so narrow.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 17263a525b316d1d02b1cc3181ec9aef3b7001e6
2015-08-07 00:40:54 -06:00
Glenn Watson
3a22e086fc servo: Merge #7021 - Fix display list optimization on retina displays. Fixes #7018 (from glennw:fix-7018); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 50a30121bfbb842067b980815fbe6d6e385e996a
2015-08-06 23:26:24 -06:00
Patrick Walton
feefd8fa17 servo: Merge #6977 - layout: Make sure anonymous table flows are statically positioned (from pcwalton:containing-block-link-crash); r=mbrubeck
The failing `float-applies-to-*` CSS 2.1 tests never really should have
been passing in the first place; they depend on floats inside
fixed-layout tables working properly, which they don't.

Closes #6078.
Closes #6709.
Closes #6858.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ddef2997abf51716835017225b282f8a9077cce
2015-08-06 22:11:04 -06:00
Glenn Watson
a48b05f8d9 servo: Merge #7017 - Update stb-image to get JPEG progressive support (from glennw:stb-update); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 78792cced2c4f1702a0bc2039bdebf07f8bcd901
2015-08-06 19:46:19 -06:00
Patrick Walton
31a86dcf8b servo: Merge #7011 - layout: Take inline margins into account when determining the intrinsic sizes of fragments (from pcwalton:inline-margin-intrinsic-size); r=mbrubeck
Avoids a needless wrapped line in the repository name on GitHub.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: da06c2dda096bd5e2a8959c102c315f9838ed465
2015-08-06 18:28:13 -06:00
Manish Goregaokar
f5870d2f32 servo: Merge #7054 - Rollup of 3 pull requests (from Manishearth:rollup); r=Manishearth
- Successful merges: #7028, #7034, #7039
- Failed merges:

Source-Repo: https://github.com/servo/servo
Source-Revision: 76b4bae6ee45317f2ca0aefbc48b89169d2450c8
2015-08-06 17:43:09 -06:00
Matt Brubeck
037b9c0ec4 servo: Merge #7052 - Rollup of 2 pull requests (from mbrubeck:rollup); r=mbrubeck
- Successful merges: #7014, #7015
- Failed merges:

Source-Repo: https://github.com/servo/servo
Source-Revision: b21584c862f8831dfb40e9cf0495bf04bc6ae1b5
2015-08-06 16:13:12 -06:00
Harrison G
c7744902f5 servo: Merge #7010 - Fixes #6879 (Improper connections to the devtools server) (from HarryLovesCode:master); r=jdm
Modifies how we behave in the case that something attempts to communicate with the devtools server improperly. This includes...

- Invalid encoding (Non `UTF8`) of the packet length / error parsing / none specified
- JSON encoding error (such as a `Parser::SyntaxError` or a `Parser::IoError`)

Happy to make changes if anyone has an issue with this or feels another way is more idiomatic!

Source-Repo: https://github.com/servo/servo
Source-Revision: 889ef3aef02144ce797266e99e0cdb66ea38871a
2015-08-06 14:00:26 -06:00
Ms2ger
1dc4f2b93a servo: Merge #7027 - Lock stderr while printing the alert() message (from Ms2ger:lock-stderr); r=jdm
2a7f262b7df8761261a0fa618394f4e991733a5e was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.

Source-Repo: https://github.com/servo/servo
Source-Revision: 522ebe7a3bd55d4572b670fa32ffc9979b3f7a74
2015-08-06 12:46:31 -06:00
Patrick Walton
90d9bfd34f servo: Merge #7008 - layout: Take negative margins of floats into account when placing them (from pcwalton:floated-negative-margins); r=mbrubeck
Removes extraneous inline space on GitHub pull requests.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: cf4b411832be5639adafc53055676f5beba3f923
2015-08-06 11:55:58 -06:00
Ms2ger
d7b9cc2d8f servo: Merge #7002 - Remove the unused WorkerGlobalScope::eventtarget method (from Ms2ger:eventtarget); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0a8ea98183ec813e490096b20e2c04db425d7b0b
2015-08-06 10:31:58 -06:00
Matt Brubeck
c0873d2989 servo: Merge #6998 - Update to unicode-bidi 0.2.1 (from mbrubeck:upgrade); r=Manishearth
Also includes some missing changes from #6416.

Source-Repo: https://github.com/servo/servo
Source-Revision: d2ba81ead2daa059a9ee889fe643d00c3d6fb8c8
2015-08-06 08:57:53 -06:00
James Graham
7df5331219 servo: Merge #6451 - Add onkey* global event handler attributes (from jgraham:onkey_attributes); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 106361443d58f57ac140e4b4033b60e98fdaad2b
2015-08-06 07:44:51 -06:00
farodin91
104d12b7cd servo: Merge #7001 - Remove Unnecessary Code in FileReader #6753 (from farodin91:filereader); r=Ms2ger
@jdm r?

Source-Repo: https://github.com/servo/servo
Source-Revision: ddd2840eed6a9c119b188c7c3aa7258f25702697
2015-08-06 06:13:56 -06:00
David Zbarsky
406ae48819 servo: Merge #6970 - GetImageData should return un-premultiplied alpha values (from dzbarsky:getimagedata); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 4726f58d15a6bfed9614b7ceaaab7765a5c01d03
2015-08-06 04:34:20 -06:00
Nick Thompson
8962b8a3cf servo: Merge #6836 - Extract layout query code into layout/query.rs (from nick-thompson:layout_refactor); r=Ms2ger
Fix for #6787. I left the commits split up for ease of review, happy to squash when this gets accepted.

Source-Repo: https://github.com/servo/servo
Source-Revision: 172f046688c600c9f51f8db0380e399f6372fe4d
2015-08-06 03:29:16 -06:00
Corey Farwell
9f63e446a9 servo: Merge #6996 - Prevent flake8 from crashing tidy (from frewsxcv:prevent-tidy-crash); r=jdm
If someone were to write:

    def hello() :
        print "hello world"

flake8 would warn:

    stdin:54:45: E203 whitespace before ':'

Normally there are only three colons in a flake8 error message, but this
one has four, which causes issue with this line:

    _, line_num, _, message = error.split(":")

...causing this error:

    ValueError: too many values to unpack

This commit updates the `str.split` call to utilize the `maxsplit`
parameter to prevent this error from occurring.

Source-Repo: https://github.com/servo/servo
Source-Revision: 729e003c5d954694e3fa6fd2b72702515ef94c6c
2015-08-06 02:32:43 -06:00
Manish Goregaokar
5b2955e6cb servo: Merge #6991 - Add doc.s.o to the readme (from Manishearth:readme-doc); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 3b4b59551d9e2ba2501f4d991fadeb0215a323a7
2015-08-06 01:36:22 -06:00
David Zbarsky
1aa0c42fef servo: Merge #6985 - Refactor DrawImage implementations to avoid code duplication (from dzbarsky:drawimage_refactor); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b54e9c30c12b42d2a6eaf5b81b88a0f4e02ebb9
2015-08-06 00:24:02 -06:00
David Zbarsky
61399bbdb5 servo: Merge #6989 - Respect the composition op when drawing images (from dzbarsky:compositing); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: b9dcd49778b8ff6d2aef0ac2420c3a30b80432c1
2015-08-05 22:57:20 -06:00
Ms2ger
c2a8b6a82f servo: Merge #6994 - Fix unused mutability warnings (from servo:warnings); r=Manishearth
They were introduced in 35ba73112395fe97599b8661729b02cedea7609a.

Source-Repo: https://github.com/servo/servo
Source-Revision: be8798b73a28b1ce8301a7e21f3547a1d06cd59a
2015-08-05 22:02:45 -06:00
Glenn Watson
691b0941e2 servo: Merge #6988 - No need for paint layer in stacking context to be an arc (from glennw:no-arc)
Source-Repo: https://github.com/servo/servo
Source-Revision: f570da28c29e2cd762fd7743f11b711c18055aac
2015-08-05 20:06:09 -06:00
Ms2ger
b8e80e6cc9 servo: Merge #6990 - Update Animation Timing links and terminology to the HTML specification (from Ms2ger:update-animatiom-timimg); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: afe3d7e747ca75afd8b641e2e4ab99f280a32e26
2015-08-05 14:55:55 -06:00
Glenn Watson
9e97a6f17d servo: Merge #6983 - Support transforms for display list optimization. Prevents clipping in #6643 (from glennw:tf2); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 315c4f5ed7be91951b83b9bbec372bc4bf8f3507
2015-08-05 12:50:36 -06:00
David Zbarsky
37af7f07c4 servo: Merge #6974 - Fix createImageData with sizes < 1 pixel (from dzbarsky:tiny-create); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: debd7d87d61e6e6d772181a1076ee29519e479c7
2015-08-05 11:40:20 -06:00
David Zbarsky
868cce00b8 servo: Merge #6971 - Make createRadialGradient throw for negative radii (from dzbarsky:negative-radius); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 95269bba39313e7a221947a6b20fecc92e87a201
2015-08-05 10:42:57 -06:00
Ms2ger
11ef44d7d1 servo: Merge #6964 - Cleanup DedicatedWorkerGlobalScope::run_worker_scope (from Ms2ger:dwgs-eventloop); r=jdm
It was getting overcrowded.

Source-Repo: https://github.com/servo/servo
Source-Revision: b3d61878dc28418e5427e965f26a06766f47358c
2015-08-05 09:21:10 -06:00
James Graham
a77654c4c2 servo: Merge #6416 - Use hosts-replaced URL only when loading resources (from jgraham:hosts_replaced); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8602d01af2b2081ea1e9d600abdb1ea609a65038
2015-08-05 08:01:03 -06:00
Patrick Walton
eec46242dc servo: Merge #6981 - gfx: Fix Core Text font instantiation for Web fonts on Mac (from pcwalton:github-font-fallback); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 11acfbc29fd3412c18b6bf62e51faef5c2435fd3
2015-08-05 06:11:36 -06:00
Patrick Walton
3f034006da servo: Merge #6980 - layout: Take borders into account when positioning inline fragments on their baselines (from pcwalton:inline-border-baseline); r=glennw
Improves the Rust GitHub page.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: cc70e2f91fcfbc04ca9f02f109ab9894c0eccf9c
2015-08-05 05:03:43 -06:00
Josh Matthews
7a2b43ae8d servo: Merge #6959 - Fix warnings (from servo:warnings_); r=jdm
Adds on top of #6949.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d8825c25c6eed4dc22b10e668b03fc79056702b
2015-08-05 03:44:22 -06:00
Patrick Walton
f9d9b5d1a1 servo: Merge #6976 - layout: Place list item markers correctly in the block direction (from pcwalton:vertical-marker-placement); r=mbrubeck
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 56a9eab2a0974f3e08d1d32afb0b2b2c0038db5f
2015-08-05 00:57:19 -06:00
r0e
f1ca75c83b servo: Merge #6944 - Fix for issue #6768. Refactor ReadData and BlobBody (from r0e:testing); r=jdm
Fix for issue #6768.

Merge common fields of ReadData and BlobBody to avoid passing redundant information to functions.

Source-Repo: https://github.com/servo/servo
Source-Revision: ac533b146660922d7d4e6f1836f189a63334df65
2015-08-04 20:21:35 -06:00
Matt Brubeck
4972f3ccca servo: Merge #6979 - Fix crash caused by negative numbers in list counters (from mbrubeck:counter); r=pcwalton
Fixes #6818.  The test still fails because of #6978.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: b9f00190e1364fb1b9ab8dc089593910c3e34d41
2015-08-04 18:37:10 -06:00
David Zbarsky
aa9a39b034 servo: Merge #6954 - Implement strokeRect with zero-width or zero-height rects (from dzbarsky:stroke_rect); r=glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: eecd9752093540220eb52308b8fb3ceba0939e3c
2015-08-04 16:38:57 -06:00
Manish Goregaokar
e0cbb5fff4 servo: Merge #6945 - If let is not an issue for lints (from Manishearth:fixedme); r=jdm
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: b7e592443f56f3ca61e12c9e777c55ac2a3ebcd0
2015-08-04 14:38:31 -06:00
Patrick Walton
4ecaa5ce11 servo: Merge #6940 - layout: When repairing styles for incremental reflow, only repair styles of nodes that represent the dirty node, *including its pseudo-element* (from pcwalton:inline-pseudo-repair-jumpiness); r=mbrubeck
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 56d3426431d98a6f43698f33bb7ce4d3ad67adeb
2015-08-04 12:53:26 -06:00
Patrick Walton
10bcc61257 servo: Merge #6947 - layout: Don't use the block container inline size as the initial computed table inline size (from pcwalton:table-center); r=glennw
Makes google.com fully centered.

r? @glennw
cc @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 220557008318350b444ba1917a3b07e03d30bec5
2015-08-04 11:36:09 -06:00
Simon Sapin
4f271271e1 servo: Merge #6950 - Add a comment to explain the struct pattern trick (from servo:struct-pattern); r=glennw
https://github.com/servo/servo/issues/6912#issuecomment-127429643

Source-Repo: https://github.com/servo/servo
Source-Revision: 0565df859684560b525b0361476d334f79db8474
2015-08-04 05:50:27 -06:00
Patrick Walton
9c986f84a3 servo: Merge #6946 - layout: If the container of a block formatting context has margins in the inline direction, subtract those from the inline size of preceding floats (from pcwalton:block-formatting-context-margins); r=mbrubeck
Makes the content area on http://reddit.com/r/rust visible.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 672b38e83ac0eb70c6e5b625752e7e3a57029176
2015-08-04 02:41:40 -06:00
David Zbarsky
8b5d35a4ff servo: Merge #6943 - Clean up some methods in CanvasRendeingContext2D (from dzbarsky:context); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 447c991ebb8cca1601d7c5ecde5dffb14199ddca
2015-08-04 00:46:09 -06:00
Patrick Walton
85f65924cf servo: Merge #6938 - construct: When repairing styles for incremental reflow, only repair styles of nodes that represent the dirty node (from pcwalton:inline-repair-jumpiness); r=mbrubeck
Fixes jumpiness on many pages; e.g. the WPT results pages.

For some reason, this would not reproduce with an automated test.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 94cd76df61c1ea14199c9683603b548377aced3b
2015-08-03 23:37:47 -06:00
Matt Brubeck
02442b6fc1 servo: Merge #6937 - Store Harfbuzz callback functions in a static var (from mbrubeck:hb_funcs); r=glennw
r? gw

Source-Repo: https://github.com/servo/servo
Source-Revision: d77f9415c5c64d18f31a1af45d2a9197373daa38
2015-08-03 22:40:35 -06:00
Josh Matthews
2f1aaef81d servo: Merge #6874 - Start reporting memory usage for Window and all nodes in all DOM tree… (from jdm:domreporting); r=njn
…s for frame treese in script tasks.

This underreports by a significant amount, since only Document, Window and CharacterData (ie. text) nodes are fully represented. That being said, every HTML element in the tree is measured, but only counted as a Node. It's easy to improve this, it just requires adding the appropriate HeapSizeOf derives and increasing the granularity of `measure_memory_for_eventtarget`. google.com shows a dom-tree value of 0.24 MB for me at the moment.

r? @nnethercote

Source-Repo: https://github.com/servo/servo
Source-Revision: 84e25befdd97cf74fb00707dbe150d59d980e977
2015-08-03 21:24:41 -06:00
Bogdan Cuza
2c11e45f89 servo: Merge #6932 - Implement HeapSizeOf for Url. Fixes #6912 (from boghison:memrs); r=SimonSapin
Fixes #6912

Source-Repo: https://github.com/servo/servo
Source-Revision: c2497fcd49933f3782d529b891f4c8bb5de198c4
2015-08-03 19:31:26 -06:00
Glenn Watson
b4bfd1bd03 servo: Merge #6784 - Implement offsetParent/Top/Left/Width/Height (from glennw:offset-ext); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: d66c59a15213dec17f38af0653e9e7e1bf579a95
2015-08-03 18:39:43 -06:00
Ms2ger
9cb8f6d6fa servo: Merge #6926 - Implement a WorkerGlobalScopeInit struct to pass arguments to WorkerGlobalScope::new_inherited more easily (from Ms2ger:dwgs-args); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3c5d24dbf43e22176d382b6f8bd9a88805c1d8b2
2015-08-03 17:42:15 -06:00
Ravi Shankar
142f47ff7e servo: Merge #6920 - Removed an invalid FIXME and fixed some doc comments (from Wafflespeanut:NIT); r=jdm
There are some bad module-level doc comments in `flow.rs` which has directly affected [Servo's docs](http://doc.servo.org/layout/flow/index.html) and so, this fixes that. Oh, and #6728 is having a hard time getting closed and so I've also removed the `FIXME` comment related to it.

Source-Repo: https://github.com/servo/servo
Source-Revision: ae3aadd6567e15b5fb4da6c85fc4cdba9fcc2eb2
2015-08-03 16:46:12 -06:00
Matt Brubeck
9312160d09 servo: Merge #6721 - Implement the unicode-bidi CSS property (from mbrubeck:unicode-bidi); r=pcwalton
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 5922ac606c63b91fdbd8c84fd0abb35450bee547
2015-08-03 15:37:12 -06:00
Ms2ger
d66f8c44ec servo: Merge #6917 - Lock and flush stdout in Window#alert (from Ms2ger:lock-alert); r=metajack
We use alert() to communicate test results to wptrunner. Unfortunately,
sometimes the alert output is interleaved with other output on stdout,
causing wptrunner to classify the test result as a timeout. I hope this will
avoid that scenario.

Source-Repo: https://github.com/servo/servo
Source-Revision: 86476804cac668133b6964c8f551918163aa66d7
2015-08-03 13:17:47 -06:00
Glenn Watson
38ace83751 servo: Merge #6903 - Fix percentage height calculation, absolute containing block height calculations (from glennw:fix-height-again); r=pcwalton
It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the *used* height, rather than the computed height.

This significantly improves the layout in #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: 028707f5cd3263fd1476669207f67d5b9d5d4806
2015-08-03 10:38:21 -06:00
Kayo Hamid
c7c0062e0b servo: Merge #6902 - [FIX] Bug fix #6756 (from khflab:master); r=jdm
fixes #6756 waiting for review.

Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ce811ffb809971cc87adf1f2f21ad2526085964
2015-08-03 09:18:05 -06:00
Harrison G
b53f75c1eb servo: Merge #6893 - Fixes Issue #6866 (from HarryLovesCode:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1809748dc12ec63e3179b66109c91983f744c235
2015-08-02 16:05:14 -06:00
Patrick Walton
f08bfd6445 servo: Merge #6895 - layout: Tie transitions to the DOM node and finish them instantly when new styles are set (from pcwalton:better-transitions); r=glennw
Tying transitions to the DOM node avoids quadratic complexity when
updating them.

Finishing transitions instantly when styles are updated makes our
behavior more correct.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: ffe4bd25a495efd672986f090150b165811b6708
2015-08-02 15:04:54 -06:00
Sam Gibson
34d2f0c3a8 servo: Merge #6722 - Obey Strict-Transport-Security header (from samfoo:sts-headers); r=jdm
Resolves #6703.

Done:

* [x] When STS headers received, add the host to the HSTS list

Todo:

* [ ] Persist the in-memory list so that it's reloaded on the next browser boot
* [ ] Add tests to `http_loader::load` - it's pretty well completely untested right now, but it's a bit gnarly to untangle and without mocking, it's hard to deal with the dependency on making a real network request. Writing a mock request object should be doable for testing, but there's a lot going on in the function right now.

Source-Repo: https://github.com/servo/servo
Source-Revision: f1c26c59f177570a697c420308fb89d9773c7468
2015-08-02 11:14:02 -06:00
Patrick Walton
e69b59f7ca servo: Merge #6896 - script: Use Arc::make_unique instead of Arc::get_mut when updating inline styles (from pcwalton:fix-particles-crash); r=SimonSapin
Transitions make the reasoning in the comment in the relevant sections
not true.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c6e271cd3d5e2a7f141cae811d92b8fd6370b18
2015-08-02 10:10:39 -06:00
zmike
bfeb75368e servo: Merge #6890 - implement display_handler::on_status_message for cef (from zmike:hashtag_tooltip); r=metajack
r+? @jdm @larsbergstrom @metajack @pcwalton @anyone with r+

Source-Repo: https://github.com/servo/servo
Source-Revision: 42a9756df0676d479a0b5ef8c093e9c845194428
2015-08-02 01:02:58 -06:00
Patrick Walton
9fc5bcecfb servo: Merge #6894 - style: Switch animation timestamps to be doubles instead of floats (from pcwalton:double-precision-timestamps); r=metajack
32-bit floats are not enough to hold timestamps since the epoch and
result in jank.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 92cbb9368471d12f0d5492abd7e04b16df549366
2015-08-01 22:01:39 -06:00
Bogdan Cuza
fa993d4367 servo: Merge #6714 - Implement a FileList (from boghison:filelist); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b7261a2073dcb66473907dbb25282f05f9bfe3d3
2015-08-01 20:16:14 -06:00
Simon Sapin
17b790db18 servo: Merge #6741 - Fix CSSStyleDeclaration::setPropertyPriority and some refactoring (from servo:fix-setpropertypriority); r=pcwalton
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: c6b043582b41434c59a21eed5c9258ae3c0fb437
2015-08-01 15:00:06 -06:00
Patrick Walton
8a1693f829 servo: Merge #6889 - style: Fix misdirected animation properties (from pcwalton:transition-left); r=metajack
left redirected to top, and padding redirected to margin.

r? @mbrubeck (or whoever)

Source-Repo: https://github.com/servo/servo
Source-Revision: 1b06031cccfac2d8625dce95f6acc1bff84dde83
2015-08-01 11:29:01 -06:00
Ravi Shankar
12b0a78e8b servo: Merge #6829 - Persuading devtools to communicate with the workers; r=jdm (from Wafflespeanut:devtools); r=jdm
For now, this just gives some purpose to the abandoned receiver and later selects over the two receivers (for #6767). (oh wait, forgot to check the local build - there are still a few errors)...

Source-Repo: https://github.com/servo/servo
Source-Revision: effb17b3368769baaf5247908b26b7f0dd370ea3
2015-08-01 10:04:07 -06:00
Michael Howell
3d0e887e68 servo: Merge #6882 - Automate Dromaeo (from notriddle:master); r=jdm
Closes #6759.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4de6e699b2ee095177360ae1812d9f47829adcc3
2015-08-01 08:50:14 -06:00
Jack Moffitt
1ffe3eb3c8 servo: Merge #6881 - Update deps for NUM_JOBS fixes (from metajack:fix-num-jobs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 9e96cf2c69bb275f8dc8c3565ee67f41a3b6e836
2015-07-31 18:17:57 -06:00
David Zbarsky
6d33c9948c servo: Merge #6839 - Use static atoms in HTMLFormElement (from dzbarsky:atoms); r=jdm
Need to update to new string-cache first, which I think requires a rustup?

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a2f28ae33efd5216b0e1933bf186ad2fadba137
2015-07-31 17:07:36 -06:00
Patrick Walton
3b92de7a22 servo: Merge #6586 - script: Make the resource task communication use IPC channels (from pcwalton:resource-task-ipc); r=jdm
This change makes Servo use serialized messages over IPC channels for resource loading. The goal is to make it easier to make Servo multiprocess in the future. This patch does not make Servo multiprocess now; there are many other channels that need to be changed to IPC before that can happen. It does introduce a dependency on https://github.com/serde-rs/serde and https://github.com/pcwalton/ipc-channel for the first time.

At the moment, `ipc-channel` uses JSON for serialization. This is because serde does not yet have official support for bincode. When serde gains support for bincode, I'll switch to that. For now, however, the JSON encoding and decoding will constitute a significant performance regression in resource loading.

To avoid having to send boxed `AsyncResponseTarget` trait objects across process boundaries, this series of commits changes `AsyncResponseTarget` to wrap a sender only. It is then the client's responsibility to spawn a thread to proxy calls from that sender to the consumer of the resource data. This only had to be done in a few places. In the future, we may want to collapse those threads into one per process to reduce overhead. (It is impossible to continue to use `AsyncResponseTarget` as a boxed trait object across processes, regardless of how much work is done on `ipc-channel`. Vtables are fundamentally incompatible with IPC across mutually untrusting processes.)

In general, I was pretty pleased with how this turned out. The main changes are adding serialization functionality to various objects that `serde` does not know how to serialize natively—the most complicated being Hyper objects—and reworking `AsyncResponseTarget`. The overall structure of the code is unchanged, and other than `AsyncResponseTarget` no functionality was lost in moving to serialization and IPC.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 2eb122f394651232abd683fc576a5c4288bf277f
2015-07-31 16:06:36 -06:00
Jack Moffitt
d25e11416a servo: Merge #6876 - Use local slice_chars (from metajack:slice_chars-layout); r=pcwalton
StrExt::slice_chars is deprecated and will be removed in Rust. This
lifts the implementation from Rust libstd and puts it in util::str.

This fixes a bunch of deprecation warnings in Servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: a54404c92180b839d2cf089d9ec9a6afe8bd5ba3
2015-07-31 12:54:49 -06:00
Simon Sapin
7123e6d672 servo: Merge #6869 - Update rust-selectors and enable unstable features (from servo:unstable-h5e); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 7e772857458f60a68346ac1a7020ae51d65959a1
2015-07-31 10:47:49 -06:00
Patrick Walton
a214f0c03f servo: Merge #6795 - Send display lists over IPC in multiprocess mode (from pcwalton:display-list-e10s-fixes); r=glennw
This patch set introduces the `--multiprocess` (`-M`) switch. Right now, all it does it cause display lists to be serialized, but eventually it will cause actual processes to be spawned.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: c4480b5d0309acc7f154166b91992f73a85de57f
2015-07-31 09:43:40 -06:00
Simon Sapin
833c6066a7 servo: Merge #6868 - Update html5ever and enable unstable features (from servo:unstable-h5e); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 33bc16fe353be237855d006b34e96fbe59f24846
2015-07-31 08:47:38 -06:00
Akos Kiss
ca8a8e9715 servo: Merge #6853 - Bump up rand dependency to 0.3.9 (from akosthekiss:rand-0_3_9-bump); r=jdm
That's the first version with the correct getrandom syscall number
for aarch64-unknown-linux-gnu.

Source-Repo: https://github.com/servo/servo
Source-Revision: ca9f9226b092f6f9349aecd53bf0b36fb5b6948e
2015-07-31 06:52:58 -06:00
Glenn Watson
a84ef3b7a1 servo: Merge #6865 - Fix panic when html element has display: table (from glennw:root-fixes); r=pcwalton
Ref #6643

Source-Repo: https://github.com/servo/servo
Source-Revision: 8419b15a3475fc54012976fbfab2139f631f9d93
2015-07-31 02:10:40 -06:00
Patrick Walton
59a01e213f servo: Merge #6863 - compositing: Don't count the root layer when checking to see when to take the screenshot (from pcwalton:null-layer-id); r=glennw
… as it isn't painted after first layout comes in.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 1fc50c6ccf98f3df3f47f5910a456a1fb88b73db
2015-07-30 23:58:05 -06:00
Matt Brubeck
a75fa91e3f servo: Merge #6861 - Update to hyper 0.6.6 (from mbrubeck:hyperup); r=metajack
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: a1c491e4d0af3a41b5f63181a7e9641929ac2477
2015-07-30 20:53:16 -06:00
Patrick Walton
df3f7bbb6d servo: Merge #6855 - plugins: Forbid trait casts of rooted objects (from pcwalton:more-rooting-soundness); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: fd211dcc92b57a94dabd6bea556d0f4837289ffd
2015-07-30 18:20:53 -06:00
Jack Moffitt
4e30dcf462 servo: Merge #6835 - Update to latest rust-cssparser (from metajack:cssparserup); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e458dca65b19754ef134b2bd65a5111425627be0
2015-07-30 17:24:38 -06:00
David Zbarsky
c98ccdfb84 servo: Merge #6851 - Return None as style for elements not in a document (from dzbarsky:gCS); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e42fddd9cc7fb79c4d631dc36ec1b47bea6b0337
2015-07-30 16:30:57 -06:00
Matt Brubeck
ad68c779b9 servo: Merge #6740 - Upgrade openssl, selectors, and cocoa (from mbrubeck:bitflags); r=larsbergstrom
This lets Servo use one version of bitflags for all dependencies.

r? @larsbergstrom or @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: df722ec1de957b0d6a0ef035c0c30aba0dade2cc
2015-07-30 15:44:12 -06:00
Simon Sapin
72eb9c272a servo: Merge #6850 - Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) (from servo:rustup_2015-07-30); r=SimonSapin
This builds and passes unit tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4837dd9a1c172a55bfad0a7ae67dc3b64753be9a
2015-07-30 14:46:13 -06:00
Huon Wilson
f1c5de846f servo: Merge #6852 - Avoid undefined behaviour by allocating with align 1 (from huonw:fix-alignment); r=pcwalton
The allocation APIs require that the alignment is a power-of-two;
meaning 1 is the "I don't care" alignment, not 0.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3792bd7611df7343c1bad6119a07bd14296c9ba6
2015-07-30 12:35:26 -06:00
Jack Moffitt
6e73974772 servo: Merge #6845 - Update gleam to 0.1.7 (from metajack:gleamup); r=SimonSapin
r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 14947172d63d639d65461533ba1f43e87e399b1b
2015-07-30 11:02:41 -06:00
Bruno de Oliveira Abinader
0de6fc8eb2 servo: Merge #6181 - Implement Msg::Status with serialized url upon mouseover (from brunoabinader:mouseover-status); r=larsbergstrom
Credits for Mike Blumenkrantz (@zmike), I just rebased against trunk and
fixed the url serialization.

Fixes #6178.

Source-Repo: https://github.com/servo/servo
Source-Revision: 82e476fd07564f2822a5af1f397751027ddf7258
2015-07-30 08:45:31 -06:00
Martin Robinson
83736a2c39 servo: Merge #6842 - Update to the latest skia (from mrobinson:preserve-gl); r=pcwalton
Now GLRasteizationContexts require having an active GLContext. This will
allow preserving GLContexts and possibly framebuffers between
rasterization sessions, improving GL Rasterization performance.

Linux Before:
+ Painting Per Tile    4.5559    4.3392  1.6920  18.5548 74
Painting             170.1554  151.8353  0.0008 350.1093 28

Linux After:
+ Painting Per Tile    3.8726    3.1299  1.5848  12.6732 62
Painting              13.5480   10.8947  0.0029  39.1198 23

Source-Repo: https://github.com/servo/servo
Source-Revision: ccd341cc68f034df675ffaf80673a1bece078e08
2015-07-30 07:29:38 -06:00
Ms2ger
cb152d0eb4 servo: Merge #6846 - Remove an obsolete comment I missed in #6804 (from Ms2ger:2661-comment); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c5060fce9fa6e4b5b06ffd76d1e52bb74d00461c
2015-07-30 06:10:56 -06:00
Patrick Walton
a107711e99 servo: Merge #6843 - servo: Update Glutin to pick up event handling fixes (from pcwalton:glutinup); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 325bf6f2d916e616534bf1a3af5c7ffca7ec62ba
2015-07-30 05:16:37 -06:00
Corey Farwell
30a3893160 servo: Merge #6800 - Implement ChildNode::before & ChildNode::after (from frewsxcv:childnode-before-childnode-after); r=Ms2ger
Continued from #6536

The current implementations of `ChildNode::before` and
`ChildNode::after` do not match the WHATWG spec. This commit updates the
implementations to match the spec.

Our current implementation of `ChildNode::after` passes all the WPT
tests. So I made sure to add a regression test that failed with the
current implementation. There are a few other unit tests I added
to exhaust other corner cases I encountered.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5873a5cf20b3db0fce59980b2a6b0b7b9da1e737
2015-07-30 04:13:39 -06:00
David Zbarsky
cd7cafe51e servo: Merge #6783 - Clean up Node::ReplaceChild (from dzbarsky:replacechild); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9e8d231196693a660a1e70d535d1c3ab290ddf39
2015-07-30 02:11:57 -06:00
Patrick Walton
1eb9c7fff1 servo: Merge #6841 - script: Squash duplicate animation tick events in the queue (from pcwalton:squash-animation-ticks); r=metajack
This prevents them from piling up endlessly if the JS
`requestAnimationFrame()` callback takes a long time to complete.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 12c46ddd6131533454e353fa8fdd8cb4b517ffd0
2015-07-30 00:04:17 -06:00
Josh Matthews
d73aab0b4c servo: Merge #6834 - Use an actual byte string when defining the prototype of named constr… (from jdm:named-constructor-prototype); r=Ms2ger
…uctors. Fixes #6730.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 3a112bc07f49e5f1a79fe4788fe5e7676ccb8345
2015-07-29 22:07:35 -06:00
Ms2ger
f324432072 servo: Merge #6831 - Document libglu1-mesa-dev dependency (from Ms2ger:glu); r=larsbergstrom
Missing this caused
  src/gpu/gl/unix/SkNativeGLContext_unix.cpp:10:20:
  fatal error: GL/glu.h: No such file or directory
on my new laptop.

Source-Repo: https://github.com/servo/servo
Source-Revision: cc98026487514889ace9d7fbacd1542fc963a1aa
2015-07-29 20:42:22 -06:00
Nicholas Nethercote
b60b4ab2e9 servo: Merge #6802 - Add a kind field to memory reports (from nnethercote:report-kind); r=jdm
This is used for two memory reporting improvements.

- It's used to distinguish "explicit" memory reports from others. This
  mirrors the same categorization that is used in Firefox, and gives a single
  tree that's the best place to look. It replaces the "pages" tree which
  was always intended to be a temporary stand-in for "explicit".

- It's used to computed "heap-unclassified" values for both the jemalloc
  and system heaps, both of which are placed into the "explicit" tree.

Example output:
```
|  114.99 MiB -- explicit
|      52.34 MiB -- jemalloc-heap-unclassified
|      46.14 MiB -- system-heap-unclassified
|      14.95 MiB -- url(file:///home/njn/moz/servo2/../servo-static-suite/wikipe
dia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyc
lopedia.html)
|          7.32 MiB -- js
|             3.07 MiB -- malloc-heap
|             3.00 MiB -- gc-heap
|                2.49 MiB -- used
|                0.34 MiB -- decommitted
|                0.09 MiB -- unused
|                0.09 MiB -- admin
|             1.25 MiB -- non-heap
|          1.36 MiB -- layout-worker-3-local-context
|          1.34 MiB -- layout-worker-0-local-context
|          1.24 MiB -- layout-worker-1-local-context
|          1.24 MiB -- layout-worker-4-local-context
|          1.16 MiB -- layout-worker-2-local-context
|          0.89 MiB -- layout-worker-5-local-context
|          0.38 MiB -- layout-task
|             0.31 MiB -- display-list
|             0.07 MiB -- local-context
|       1.56 MiB -- compositor-task
|          0.78 MiB -- surface-map
|          0.78 MiB -- layer-tree
```
The heap-unclassified values dominate the "explicit" tree because reporter
coverage is still quite poor.

Source-Repo: https://github.com/servo/servo
Source-Revision: bff5e325a89ab6621a049ac55c1da66e901c776c
2015-07-29 19:42:00 -06:00
David Zbarsky
c4655740ea servo: Merge #6798 - Implement getComputedStyle (from dzbarsky:gCS); r=pcwalton
It's not quite done but can probably be reviewed anyway.
I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked.

The computation of the used values is definitely not right, I'm going to investigate that.

Source-Repo: https://github.com/servo/servo
Source-Revision: acbca7b3aaf18866f7a1a79d9684149897bf4305
2015-07-29 18:48:45 -06:00
Glenn Watson
a76f4dc5b7 servo: Merge #6827 - Add ToCss serialization support for translation transforms (from glennw:serialize-translate); r=pcwalton
Ref #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: d62f0fb7c4a14ac3ee977ab2ec86fcd654ff0824
2015-07-29 17:50:41 -06:00
Nick Thompson
7aec9852b5 servo: Merge #6815 - Dispose layout data for every node removed from the tree (from nick-thompson:dispose_layout_data); r=jdm
Fix for #6754.

cc @jdm – I believe this is all that's required for the fix, but until I get a better sense of #6813, I'm unsure of the best way to test this.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b7120012a5f5eed71236fcf5d546ae76837ea11
2015-07-29 16:24:46 -06:00
ecoal95
5f266e5366 servo: Merge #6812 - webgl: Make context creation fallible. Fixes #6806 (from emilio:webgl-fail); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b90fd5931dbba9cf26e3111132587ea285dbca05
2015-07-29 15:29:58 -06:00
Tom Schuster
d22cefb8e0 servo: Merge #5851 - Implement the HTML background attribute (from evilpie:background); r=SimonSapin
Fixes #5835

Source-Repo: https://github.com/servo/servo
Source-Revision: 58fa3b69b76387958db45bc9831ac7c79caab2ea
2015-07-29 14:37:45 -06:00
Ms2ger
e4397aa49e servo: Merge #6809 - Remove unrooted_must_root annotation from unions (fixes #2661) (from Ms2ger:unrooted_must_root); r=metajack
The unsafety was fixed as part of the SpiderMonkey upgrade; this removes the
now unused annotation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7adc336aaacfb5e544a9c8c4e0387afa457e5d72
2015-07-29 13:20:20 -06:00
Avi Weinstock
6a5f0dd49d servo: Merge #6654 - Add copy-to-clipboard feature under x11 (from aweinstock314:add-x11-copy-to-clipboard); r=jdm
The main work is in the the rust-clipboard library, this PR updates Cargo.lock and adds plumbing.

0337e48b3f

Source-Repo: https://github.com/servo/servo
Source-Revision: 28e163d6c44f1d85fbaea7f236da40972b6a63b1
2015-07-29 11:26:00 -06:00
Patrick Walton
f6493dee57 servo: Merge #6822 - compositing: Tick animations right away when content enables animations (from pcwalton:tick-animations-more-often); r=glennw
Otherwise, we have to wait for the next vsync. This was capping the
framerate of the particles demo at 30 FPS in most cases.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 416931f4be43826d3b2a96905c22f626c88b603c
2015-07-29 08:40:42 -06:00
Ms2ger
c1ed01f0b0 servo: Merge #6811 - Simplify AutoWorkerReset::new (from Ms2ger:auto-worker); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e74a13c01df235d28c5a6f62a20adbdf5cdd4b79
2015-07-29 07:54:08 -06:00
farodin91
1507d19112 servo: Merge #6807 - Refactor FileReader #6762 #6763 #6750 #6751 (from farodin91:filereader); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 52c2049f2a47c814888e98c509eac83dc071e829
2015-07-29 07:07:22 -06:00
Ms2ger
1c6b569040 servo: Merge #6810 - Remove unused import (from Ms2ger:warnings); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: b43b7ba9250a261637c7b84ca3ed95a2e6af4203
2015-07-29 06:19:25 -06:00
Ms2ger
cad691e968 servo: Merge #6828 - Try to reduce intermittent failures (from Ms2ger:intermittents); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d707792cceefb1c1466db6ba800d4e4ee9d8e639
2015-07-29 05:32:52 -06:00
farodin91
63c07ae335 servo: Merge #6803 - Adding for support Blob.{close,isClose} #6723 (from farodin91:blob); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 96b0f96ce2829cc38457ace22be4f731f8ca9d77
2015-07-29 04:41:19 -06:00
Glenn Watson
e3f983ae30 servo: Merge #6801 - Accumulate and invert stacking context transform for hit tests (from glennw:hit-test-transforms); r=pcwalton
This makes hit tests work on stacking contexts with transforms.

Ref #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: fff104bb41dea0ba64fdca312de7b4c0d76277c8
2015-07-28 23:09:08 -06:00
Glenn Watson
20bd9ca362 servo: Merge #6796 - Change transforms to use LengthOrPercentage (from glennw:transform-translate-fix); r=pcwalton
This simplifies an upcoming PR to support serializing transform values for css style declarations.

Related to issue #6643.

Source-Repo: https://github.com/servo/servo
Source-Revision: a409699a0bf608d8c830ce37ec54d19e51e4ed05
2015-07-28 20:40:57 -06:00
Michael Howell
65722dd9bc servo: Merge #6793 - Add basic unit test for preload_hsts_domains (from notriddle:hsts-preload); r=jdm
Closes #6789.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2df88ee4b97fbc347dc99869b6989605760b662e
2015-07-28 19:01:39 -06:00
Ms2ger
487f354031 servo: Merge #6794 - Remove StyledNode (from Ms2ger:StyledNode); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 0b447651e4e5309c057f2cf2af58b3aa733bb4c4
2015-07-28 17:26:42 -06:00
David Zbarsky
b789fa718f servo: Merge #6695 - Implement Range#extractContents (from dzbarsky:extractcontents); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: bdf01ddd6050e2616bd154a58ac517b3eef44db0
2015-07-28 13:01:33 -06:00
Matt Brubeck
b67ae38fdf servo: Merge #6814 - Remove unused script -> layout_traits dependency (from mbrubeck:dead-dep); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 59ea4a18ae934926d8c9731c4c3d3e85ff737fb5
2015-07-28 12:15:00 -06:00
Bogdan Cuza
e9c4da1e57 servo: Merge #6699 - Tidy check for FooMethods in components/script/dom/*.rs and color for tidy (from boghison:tidyspec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 14ccb22e679722ed3374c8facec21adcf0f2b247
2015-07-28 08:56:39 -06:00
Till Schneidereit
372ef0fcd0 servo: Merge #6662 - Implement Element.client{Top,Left,Width,Height} (from tschneidereit:client-geometry); r=glennw,pcwatson
This isn't done, but contains a working implementation of at least `clientTop`. Feedback would be much appreciated: it's probably far from ideal.

Implementing `clientLeft` is straight-forward, I think, but `clientWidth` and `clientHeight` require accessing the `border_box` - and I don't know how that works, yet.

Source-Repo: https://github.com/servo/servo
Source-Revision: e0bd80f80715bdbdf30de1de9c79a99a41cfd99e
2015-07-27 20:45:05 -06:00
Michael Howell
8ff7eb2d9f servo: Merge #6782 - Use empty Vec instead of None (from notriddle:empty-vec); r=jdm
Closes #6764

Source-Repo: https://github.com/servo/servo
Source-Revision: 2672f2bbe46fd833c6a84b70edaa99dcaf092b5c
2015-07-27 19:45:09 -06:00
Michael Howell
885f81a912 servo: Merge #6774 - Check if naturalWidth / naturalHeight works w/ DPR (from notriddle:master); r=jdm
$ ./mach run --device-pixel-ratio=1 tests/html/get-natural-height.html
    ALERT: width: 600, height: 254
    $ ./mach run --device-pixel-ratio=2 tests/html/get-natural-height.html
    ALERT: width: 600, height: 254
    $ ./mach run --device-pixel-ratio=.5 tests/html/get-natural-height.html
    ALERT: width: 600, height: 254

It doesn't. Answers #6769.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1eeb05d914bcec1b4839b3f0be7b13c98b711783
2015-07-27 17:13:02 -06:00
Patrick Walton
8325a09ce0 servo: Merge #6745 - devtools: Convert the developer tools to run over IPC (from pcwalton:devtools-ipc); r=jdm
This was a large, invasive change.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 4bc1db3fe85f2a1a04536f0f6045b53b1319f4bc
2015-07-27 11:09:38 -06:00
Ms2ger
950b3b0868 servo: Merge #6788 - Remove unused StyledNode::has_style method (from Ms2ger:has_style); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 662c00a8109c49d4c57343156b774441f4f48640
2015-07-27 08:07:23 -06:00
David Zbarsky
04e22fda34 servo: Merge #6773 - Fix MouseEvent.which to not throw (from dzbarsky:which); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 5b90cfd57d2d4595596c37b7f441d3422391eb8d
2015-07-27 05:57:09 -06:00
Corey Farwell
78470eed15 servo: Merge #6777 - Cleanup lint special cases, refactor flake8 linting (from frewsxcv:refactor-tidy); r=jdm
Currently, there are a few linting functions that only run on certain
filetypes (determined by the file extension). Prior to this commit, the
special cases were handled in a parent function with a conditional. This
commit changes the system so each linting function gets passed a
filename so the function can determine whether it should run or not
based on the file extension.

I also refactored flake8 linting slightly. From what I've read so far of
the code, flake8 itself will only print the results directly to stdout
(though the linter would report the quantity of errors detected).
Prior to this commit, we would let flake8 print directly to stdout and
just determine if there were >0 errors reported. This commit (sort of
hackily) temporarily captures stdout when we call flake8 so we can do
what we want with the output, allowing us to `yield` the line number
and message like we do with the other linting functions.

In my opinion, both of these changes isolate specific behaviors/checks
into their respective linting functions instead of having them handled
at a more global level.

In addition to the changes above:

* The whitespace linter now runs on WebIDL and TOML files
* The license header linter now runs on WebIDL files

Source-Repo: https://github.com/servo/servo
Source-Revision: 7c8922c0c39616559b580b4a363ebe2a8c6b3ba8
2015-07-27 04:39:04 -06:00
Ms2ger
c9cf829342 servo: Merge #6771 - Remove unused allow(unrooted_must_root) attribute (from Ms2ger:unused-attr); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 78455ec033c6116732a8f43b909093b7d7732779
2015-07-27 02:23:53 -06:00
Patrick Walton
6d44729f83 servo: Merge #6597 - script: Make the ImageCacheTask use IPC (from pcwalton:image-cache-ipc); r=jdm
This necessitated getting rid of the boxed trait object that was being
be passed between the script task and the image cache task.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e13ebf712de444132a6cc90f394c121d8d751c4c
2015-07-27 00:08:15 -06:00
Ms2ger
9c852f72e0 servo: Merge #6781 - Remove unused method Window::handle_resize_inactive_msg (from Ms2ger:handle_resize_inactive_msg); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 380de1ba821140b180ef137796e5c3097a953c11
2015-07-26 20:55:40 -06:00
Patrick Walton
a97d607394 servo: Merge #6746 - net: Convert the storage task to use IPC (from pcwalton:storage-task-ipc); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 362de0390280d01989521b2176477510fb6c0413
2015-07-26 18:07:32 -06:00
David Zbarsky
7f67f0a645 servo: Merge #6760 - Remove outdated comment about cloning elements (from dzbarsky:comment-fix); r=jdm
The comment points to the "implement element prefix" issue, but we clone the element's prefix when we construct the element right above.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5a66b59f9bfece8944d9766872cc95cdce7705e6
2015-07-26 08:01:56 -06:00
Michael Howell
777bd4217c servo: Merge #6776 - Remove unnecessarily verbose matches (from notriddle:filereader-matches); r=jdm
Fixes #6766.

Source-Repo: https://github.com/servo/servo
Source-Revision: fd1bf1900d876be2da4743c65ea0956be1057453
2015-07-26 00:18:10 -06:00
Ravi Shankar
55353ec7ad servo: Merge #6761 - Combining FileReaderEvent and Process into an enum; r=jdm (from Wafflespeanut:filereader); r=jdm
This one's for #6752. The build was successful for this change. I'll commit the next one for `perform_annotated_read_operation` in a moment...

Source-Repo: https://github.com/servo/servo
Source-Revision: 3af6992151b087412b2dd460d20b34fb9fc2f28f
2015-07-25 13:58:34 -06:00
Anthony Ramine
23bb14e6aa servo: Merge #6660 - Introduce VirtualMethods::children_changed() (from nox:children-changed); r=jdm
This virtual method mimics the behaviour of mutation observers and make it more viable than the older child_inserted(), which didn't cover removed nodes and was called as many times as there were inserted nodes.

A few other shortcomings where remove_child() was called directly instead of Node::remove() were also fixed while at it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 705c95dedbbaa60ffd08e70579915e228d5b6ee0
2015-07-25 11:39:20 -06:00
Akos Kiss
1a0400fb91 servo: Merge #6749 - Bump up dependencies past the point where both aarch64 fixes and x11 v2.0.0 bump-ups are landed (from akosthekiss:bump-deps); r=jdm
Affected dependencies are:
* azure,
* clipboard,
* glutin,
* js,
* layers,
* offscreen_gl_context,
* skia, and
* x11 (of course).

ipc-channel has already been bumped up in a previous commit.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8edf1a5ecdecc9f6de8210fc875cff3679fda09e
2015-07-25 10:17:55 -06:00
Matt Brubeck
d3b025f833 servo: Merge #6738 - Perform argument validation before bootstrapping (from mbrubeck:bootstrap); r=larsbergstrom
If there's an error in the command-line arguments for `mach build`, we should print it before starting a (potentially) long bootstrap process, not after.

r? @larsbergstrom or @frewsxcv

Source-Repo: https://github.com/servo/servo
Source-Revision: c7f73ebc2938e5dc67a10238cac9fc10f95e2f5f
2015-07-25 09:32:30 -06:00
Christopher Hotchkiss
1681a8d3df servo: Merge #6742 - Added support for int32 to webdriver (from chotchki:accept_int32); r=jdm
Fix for issue #6729

Source-Repo: https://github.com/servo/servo
Source-Revision: ee07e7110d045eb6411ba101d2373318b5ab4f17
2015-07-25 07:50:26 -06:00
Patrick Walton
d4fd20dc7c servo: Merge #6616 - script: Make most of 2D canvas and WebGL run over IPC (from pcwalton:canvas-webgl-ipc); r=jdm
To actually make the multiprocess communication work, we'll need to
reroute the task creation to the pipeline or the compositor. But this
works as a first step.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 1764267379a00b96a1df89f3917299a0c6fd325c
2015-07-25 01:50:31 -06:00
Ms2ger
5d01ac1294 servo: Merge #6712 - Cleanup ParallelPostorderFlowTraversal (from Ms2ger:traversal); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 886c08c393f51499490702eaf97fc770273a2600
2015-07-24 20:50:55 -06:00
Patrick Walton
939c609e32 servo: Merge #6629 - profile: Make the time and memory profilers run over IPC (from pcwalton:profiler-ipc); r=jdm
Uses a couple of extra threads to work around the lack of cross-process
boxed trait objects.

r? @nnethercote

Source-Repo: https://github.com/servo/servo
Source-Revision: f778e0eecf7cd8a2b870d18c3c305ff10d6b1894
2015-07-24 18:55:05 -06:00