Commit graph

4520 commits

Author SHA1 Message Date
Per Lundberg
4cb4cc93e4 Renamed TComputedValues to ComputedValues
This is a followup to #10210, and a continuation of #10185.
2016-03-29 23:30:13 +03:00
Emilio Cobos Álvarez
5756463fa1 Update struct bindings to take layout into account
This takes alignment into account on non-translatable types, so the only
failing tests now are:

```
bindgen_test_layout_StyleAnimation
bindgen_test_layout_nsStyleSVG
```

This includes:
36f18c9603
2016-03-29 21:27:39 +02:00
Josh Matthews
aa8373b113 Update rust-mozjs to silence warnings. 2016-03-29 10:04:30 -04:00
Josh Matthews
03e3cb24b9 Remove CEF warnings about unused features and snake case names. 2016-03-29 10:03:10 -04:00
bors-servo
639fdd6b12 Auto merge of #10210 - perlun:rename-computedvalues-to-servocomputedvalues, r=SimonSapin
ComputedValues is now ServoComputedValues

This is the first part of #10185. More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10210)
<!-- Reviewable:end -->
2016-03-29 18:25:40 +05:30
bors-servo
aac2da75f4 Auto merge of #8641 - notriddle:no_headless, r=glennw
No more headless compositor. Just the normal one.

Fixes #8573

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8641)
<!-- Reviewable:end -->
2016-03-29 12:42:01 +05:30
bors-servo
ddc57fe641 Auto merge of #10253 - eddyb:ipc-update, r=pcwalton
Update ipc-channel to fix leaks and spurious ENOBUFS.

Supersedes #10241 (fixes #10029).
Also fixes #9555 (hopefully for good).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10253)
<!-- Reviewable:end -->
2016-03-29 11:38:13 +05:30
Eduard Burtescu
a2eecaae82 Update ipc-channel to fix leaks and spurious ENOBUFS. 2016-03-29 03:59:05 +03:00
Anthony Ramine
e29beb10a8 Bump websocket to 0.16.1 2016-03-28 19:45:20 +02:00
Jussi Räsänen
0055d34067 Added current url to window if no <title> specified.
Fixes issue #9960, adds current url to window title if title is not
specified.
2016-03-28 12:16:05 +03:00
Per Lundberg
c2ad084713 ComputedValues is now ServoComputedValues
This is the first part of #10185. More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.
2016-03-27 10:55:43 +03:00
Emilio Cobos Álvarez
015c69db56 Update angle to trunk
Related angle PR: https://github.com/emilio/angle/pull/7
2016-03-26 23:38:07 +01:00
bors-servo
68a8085a2f Auto merge of #10186 - matthiaskrgr:fix_10183, r=Manishearth
fix #10183, forward navigation key should not require shift to work.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10186)
<!-- Reviewable:end -->
2016-03-27 01:44:54 +05:30
bors-servo
db13ec48b1 Auto merge of #10191 - servo:xml, r=KiChjang
Update xml5ever.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10191)
<!-- Reviewable:end -->
2016-03-26 23:22:24 +05:30
Alan Jeffrey
32c72f0925 Added ability to randomly kill pipelines to the constellation. 2016-03-26 09:11:28 -05:00
bors-servo
bed91b3334 Auto merge of #10176 - mbrubeck:selection-range, r=pcwalton
Highlight selected text in input fields

Fixes #9993.  This does not yet allow stylesheets to set the selection colors; instead it uses a hard-coded orange background and white foreground.

r? @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10176)
<!-- Reviewable:end -->
2016-03-26 08:16:20 +05:30
Emilio Cobos Álvarez
0a609e81c7 geckolib: Update docs to point to the bindings file. 2016-03-25 18:55:58 +01:00
Emilio Cobos Álvarez
6c851c88ea geckolib: Update bindings with vtable generation and anonymous unions
Only 9 tests failing!

```
bindgen_test_layout_FontFamilyList
bindgen_test_layout_StyleAnimation
bindgen_test_layout_nsFont
bindgen_test_layout_nsStyleBackground
bindgen_test_layout_nsStyleDisplay
bindgen_test_layout_nsStyleFont
bindgen_test_layout_nsStyleGridTemplate
bindgen_test_layout_nsStylePosition
bindgen_test_layout_nsStyleSVG
```

The dependencies are:

 * FontFamilyList makes nsFont fail which makes nsStyleFont fail.
 * nsStyleGridTemplate makes nsStylePosition fail
 * StyleAnimation makes nsStyleDisplay fail

nsStyleGridTemplate and nsStyleSVG failures seem to be bitfield-related.

Except the bitfield-related values and those deps, I don't know what
might cause the other failures, we'll have to check carefully C++
member alignments.
2016-03-25 18:49:23 +01:00
Emilio Cobos Álvarez
c220fcdb00 geckolib: Update bindings with enum name mangling 2016-03-25 18:49:10 +01:00
Emilio Cobos Álvarez
58591652f8 geckolib: Add 100% compilable bindings for the first time! \o/
This still fails some tests (20 of 130 IIRC).

Most of them are derived from others, and those who arent I think it's
because of:

 1. A vtable: Since we don't generate functions I think we don't do the
vtable calculation.

 2. Premature opaque structs: It's the case for nsDataHashtable, where
we generate a 0 byte struct, since we calculate it using sizeof() and
the type is not complete without the type parameters.

 3. Some other subtlety? I think we miss a case of enum-in-union or
something like that, that is explicitely disabled in bindgen since the C
standard forbids it. I think it can be enabled without too much problem.

Anyways, I'll leave it for tomorrow! \o/
2016-03-25 18:48:58 +01:00
Emilio Cobos Álvarez
ef59da51d5 geckolib: Get nsMargin and nsCoord working
I had to make them opaque types since there were so many template
parameters and inheritance when including gfx that... I got scared.
2016-03-25 18:48:43 +01:00
Emilio Cobos Álvarez
247ac2542a geckolib: Stop blacklisting empty types
My fork of bindgen supports them now and doesn't generate tests for
them now.
2016-03-25 18:48:23 +01:00
Emilio Cobos Álvarez
b433d80deb geckolib: Blacklist some more comparators in regen_style_structs.sh
We *do* generate bindings for them, and they compile fine, but the
expected size for them is not correct.

My guess is that C++ types without members have at least 1 byte to be
addressable.

I'll test that later, but for now we don't care about them...
2016-03-25 18:48:00 +01:00
Emilio Cobos Álvarez
88c42cb58f geckolib: tools: Checkout correct nsString bindings 2016-03-25 18:47:35 +01:00
Emilio Cobos Álvarez
3df2eaa410 geckolib: Allow generating correct bindings for nsString
Which is already a win!

I'll keep moving into other style structs later.
2016-03-25 18:47:13 +01:00
Emilio Cobos Álvarez
706285123c geckolib: tools: Switch to llvm+clang 38
It also has our patches, and we'll benefit from improvements.
2016-03-25 18:46:45 +01:00
Emilio Cobos Álvarez
13d7b33a04 geckolib: Define a few MOZ_* things to hack around more easily. 2016-03-25 18:43:42 +01:00
Emilio Cobos Álvarez
18b1cc68db geckolib: Quote paths and remove things after the first non-preceding whitespace
This should allow `regen_style_structs.sh` to run on mac, where a path
like:

/.../Frameworks (framework dir)

was reported.
2016-03-25 18:43:42 +01:00
Emilio Cobos Álvarez
a6ffabb2ad geckolib: Add basic documentation, be consistent and safe with quotes 2016-03-25 18:43:42 +01:00
Emilio Cobos Álvarez
38b30c6490 geckolib: Don't hardcode library paths
It feels like a hack but it's supposed to work in any clang...
2016-03-25 18:43:42 +01:00
Emilio Cobos Álvarez
0128e985f6 geckolib: export LD_LIBRARY_PATH for linux 2016-03-25 18:43:42 +01:00
Ms2ger
dbc65d1da7 Update xml5ever. 2016-03-25 09:58:58 +01:00
Matthias Krüger
3b6afb31c6 fix #10184, remove backspace-to-navigate. 2016-03-25 02:53:46 +01:00
Matt Brubeck
6171000875 Highlight selected text in input fields
Fixes #9993.  This does not yet allow stylesheets to set the selection colors;
instead it uses a hard-coded orange background and white foreground.
2016-03-24 18:33:26 -07:00
Matthias Krüger
3a372bc122 fix #10183, forward navigation key should not require shift to work. 2016-03-25 02:31:20 +01:00
bors-servo
2f6388c301 Auto merge of #10174 - larsbergstrom:update_egl, r=zmike
Update servo-egl to fix CEF linkage

Fixes #10130
r? @zmike

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10174)
<!-- Reviewable:end -->
2016-03-25 06:30:30 +05:30
bors-servo
605842f193 Auto merge of #10155 - bholley:generalize_style_structs, r=SimonSapin
Generalize the style structs

This allows geckolib to pass gecko style structs and have the style system write to them directly, provided we implement all the traits.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10155)
<!-- Reviewable:end -->
2016-03-25 03:27:33 +05:30
Bobby Holley
e82aa66245 Implement more glue methods. 2016-03-24 11:50:59 -07:00
Bobby Holley
3c44dbae21 Add a skeleton implementation of TComputedValues in geckolib. 2016-03-24 11:50:58 -07:00
Bobby Holley
c2daea2c9c Parameterize the rest of the style system on TNode. 2016-03-24 11:50:57 -07:00
Michael Howell
c9cb4839e4 No more headless compositor. Just the normal one.
This changes headless operation to strictly be a runtime option, rather
than a compile-time one. Note that the old headless version still relied
on a display server to support WebGL, while it now requires one all the
time.

Fixes #8573
2016-03-24 11:18:54 -07:00
Lars Bergstrom
a3818cf574 Update servo-egl to fix CEF linkage 2016-03-24 12:03:01 -05:00
Ms2ger
69f0d85e39 Update gaol. 2016-03-24 12:32:10 +01:00
bors-servo
2887623c4a Auto merge of #10150 - emilio:canvas-cleanup, r=jdm
Canvas cleanup

This PR cleans up the layerization infrastructure for canvas, which was unused, and removes unused dependencies.

It also takes in account my recent username change to update angle's dependency (offscreen_gl_context requires extra work due to webrender depending on it).

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10150)
<!-- Reviewable:end -->
2016-03-24 08:44:40 +05:30
bors-servo
771623054f Auto merge of #10122 - Manishearth:nav-keys, r=asajeffrey
Support navigation keys

Rather useful.

If most people have these keys on their keyboard, I'd prefer to remove the backspace navigation handler. I've never used it on purpose, but it gets hit often by accident when an input widget isn't focused (either due to a misclick or debug build lag).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10122)
<!-- Reviewable:end -->
2016-03-24 02:35:49 +05:30
Emilio Cobos Álvarez
5a6eaf8621 canvas_traits: Remove unused layers dependency 2016-03-23 18:16:47 +01:00
Emilio Cobos Álvarez
8e61a8a974 script: Update angle url 2016-03-23 18:12:39 +01:00
Emilio Cobos Álvarez
50ba78c512 gfx: Drop "canvas_traits" dependency 2016-03-23 18:12:39 +01:00
Emilio Cobos Álvarez
35ce58ef98 layout: Drop "canvas" dependency 2016-03-23 18:12:38 +01:00
Paul Rouget
e1d427ab7c browserhtml version bump 2016-03-23 18:43:55 +08:00