Commit graph

17187 commits

Author SHA1 Message Date
bors-servo
b568b72d76 Auto merge of #10391 - autrilla:inline-content-changed, r=Ms2ger
Inlined content_changed

cc @Ms2ger

<!-- 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/10391)
<!-- Reviewable:end -->
2016-04-05 01:37:55 +05:30
Josh Matthews
c99b339376 Update block package to reduce warnings. 2016-04-04 15:29:57 -04:00
dhaval0603
af64a888e6 Private browsing - Initial steps 2016-04-04 15:22:38 -04:00
bors-servo
8dd24fa783 Auto merge of #10377 - emilio:geckolib, r=bholley
geckolib: All bindings aligning properly!

So the following PR includes bitfield support and correct `#[repr(..)]` for enum declarations (even though I was forced to add a dummy variant in order for `rustc` to be happy).

So... **That makes all of our style structs align correctly**!

The only failing test is `nsDataHashTable`, but you know, that test is ill-formed because of it being an opaque type with type parameters.

BTW, just landed on bindgen 7ee7bae788, so you can add `-raw-line "use gecko_style_structs::*;"` in `regen_bindings.sh` and stop relying on manual hacks.

r? @bholley

<!-- 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/10377)
<!-- Reviewable:end -->
2016-04-05 00:38:15 +05:30
bors-servo
a29da7b48e Auto merge of #10365 - emilio:warnings, r=Wafflespeanut
servo: Clean up unused variables and imports

<!-- 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/10365)
<!-- Reviewable:end -->
2016-04-04 23:39:31 +05:30
bors-servo
2477cfc9b4 Auto merge of #10330 - danlrobertson:flex-axes, r=SimonSapin
Compute available main and cross size of flex containers

Compute the available main and cross size of flex containers, and add a helper for min/main constraints. Currently, this should only impact inline sizing. I wanted to get some feedback before I made more changes. Will probably need to be rebased if #10178 is merged first or visa versa.

Specs:
https://drafts.csswg.org/css-flexbox/#line-sizing
https://drafts.csswg.org/css2/visudet.html#min-max-widths
https://drafts.csswg.org/css2/visudet.html#min-max-heights

<!-- 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/10330)
<!-- Reviewable:end -->
2016-04-04 21:18:45 +05:30
bors-servo
a3b55d68a8 Auto merge of #10359 - bholley:style_struct_management, r=SimonSapin
Implement construction, destruction, and copying of gecko style structs

This requires some new machinery on the gecko side, which I'll get up in bugzilla shortly.

<!-- 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/10359)
<!-- Reviewable:end -->
2016-04-04 20:11:29 +05:30
bors-servo
ca3d120f4a Auto merge of #10372 - dzbarsky:rmAttrNS, r=Ms2ger
Implement nodeName on Attr

<!-- 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/10372)
<!-- Reviewable:end -->
2016-04-04 18:12:32 +05:30
bors-servo
3b2a1a3c47 Auto merge of #10354 - perlun:implement-missing-html-script-element-attributes, r=Ms2ger
HTMLScriptElement: Added missing DOM properties

This should sort out most (all?) of the ones pointed out in #10227.

/cc @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/10354)
<!-- Reviewable:end -->
2016-04-04 17:21:22 +05:30
bors-servo
a9eb08dbaa Auto merge of #10344 - servo:wpt-20160401, r=Ms2ger
Update web-platform-tests to revision 15ad8eaadd91425cc9331b2e658d4c2796ae5ad8.

Fixes #10375.

<!-- 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/10344)
<!-- Reviewable:end -->
2016-04-04 16:17:43 +05:30
Adrian Utrilla
bc1b8ef4c6 Inlined content_changed 2016-04-04 11:33:37 +02:00
Ms2ger
dba68269e0 Update web-platform-tests to revision 15ad8eaadd91425cc9331b2e658d4c2796ae5ad8 2016-04-04 09:43:55 +02:00
bors-servo
241518a7d2 Auto merge of #10034 - rilut:implement-elementsfrompoint, r=emilio
Implement Document#elementsFromPoint

Fixes #9859.

I'm trying to implement Document#elementsFromPoint, which I need to reuse the `get_nodes_under_mouse` and `mouse_over` function which have been removed a days ago in #9715. So I added it back while I'm not sure if my implementation is correct. Any advice will be greatly appreciated.

<!-- 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/10034)
<!-- Reviewable:end -->
2016-04-04 12:48:39 +05:30
Per Lundberg
99f473631a HTMLScriptElement: Added missing DOM properties
This should sort out most (all?) of the ones pointed out in #10227.

(Amended with suggested fixes in PR #10354.)
2016-04-03 22:33:57 +03:00
Arnaud Marant
95c077af46 Issue #10348 Implement StringMozPreference, string preferences, WPT tests
I'm not exactly sure of the wanted semantics with boolean values.
2016-04-03 21:28:17 +02:00
David Zbarsky
8cbcdfb761 Implement nodeName on Attr 2016-04-03 10:27:41 -07:00
bors-servo
d35ae3beb7 Auto merge of #9972 - dagnir:xhr-data, r=KiChjang
Xhr data

Builds on existing work by @emosenkis.  Fixes #8015.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9972)
<!-- Reviewable:end -->
2016-04-03 20:45:36 +05:30
Till Schneidereit
410924d94b Snap scrolling to major axis of movement
This is what Safari does, and it leads to much better behavior, in particular wrt overscrolling. It does cause a staircase effect when scrolling diagonally, which again Safari has, too. I don't think that bad, because it should occur very rarely in practice.

Fixes #10341
2016-04-03 17:02:33 +02:00
Rizky Luthfianto
07584b9f29 Implement Document#elementsFromPoint 2016-04-03 21:44:01 +07:00
bors-servo
f6c2924936 Auto merge of #10360 - mbrubeck:die-opt, r=emilio
Remove unused -Z dump-display-list-optimized flag

<!-- 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/10360)
<!-- Reviewable:end -->
2016-04-03 18:35:01 +05:30
bors-servo
88d29e537c Auto merge of #10369 - autrilla:Uniform4iv, r=emilio
Issue #10368: Implemented Uniform4iv and Uniform4i

Uniform4iv can make use of Uniform4i, so I implemented both.

<!-- 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/10369)
<!-- Reviewable:end -->
2016-04-03 11:48:47 +05:30
Emilio Cobos Álvarez
70229b1720 webgl: Add test for WebGL vertex attributes out of bounds. 2016-04-03 01:22:52 +02:00
Emilio Cobos Álvarez
ee8ecd9299 webgl: tests: Fix webgl triangle test
It was giving a ton of whitespace errors, and I don't know if it's due
to nodeValue or ANGLE...
2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
6fcc03c965 webgl: Make the api return the context limits and use them for validations
This allows keeping the VertexAttrib* calls asynchronous.

Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.

The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
8d7ee15ace webgl: Remove unneeded return value. 2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
466c8881de webgl: Use early return in DrawArrays 2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
240ac7cfe2 webgl: Validate shader type parameter to CreateShader. 2016-04-03 01:21:56 +02:00
Emilio Cobos Álvarez
13e87b4479 geckolib: Correctly generate bitfields 2016-04-03 01:08:42 +02:00
Emilio Cobos Álvarez
fd79e7a20f geckolib: Add correct repr() for enum declarations
This fixes the layout of `StyleAnimation`, though we probably want to
include AnimationEffectReadOnlyBinding.h.

The problem with that is that namespacing should be polished, or a lot
of types should be blacklisted, since the bindings define a few
repetitive names.
2016-04-03 01:08:41 +02:00
Emilio Cobos Álvarez
fcbfb4fbd2 geckolib: Define JS_DEBUG to fix generation, and fix escape 2016-04-03 01:08:32 +02:00
Adrian Utrilla
bd1448ab56 Added Uniform4iv and Uniform4i 2016-04-02 20:48:29 +02:00
bors-servo
8b32e63db8 Auto merge of #10215 - ConnorGBrewster:webgl_finish, r=emilio
WebGL: Finish, Flush, DetachShader, GenerateMipmap

Implements #10212 and #10213

r? @emilio

<!-- 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/10215)
<!-- Reviewable:end -->
2016-04-03 00:08:47 +05:30
Connor Brewster
3fd7634f54 webgl: finish, flush, detachShader, generateMipmap, Uniform1i 2016-04-02 12:31:47 -06:00
bors-servo
85f9f9626e Auto merge of #10343 - asajeffrey:document-constellation-recv-panic, r=jdm
Comment explaining constellation panic for recv

A retry of #10294, which was closed due to homu issues.

<!-- 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/10343)
<!-- Reviewable:end -->
2016-04-02 23:08:45 +05:30
bors-servo
7f4929d52d Auto merge of #10366 - emilio:style-docs, r=SimonSapin
style: Improve style::selector_matching documentation

r? @mbrubeck

<!-- 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/10366)
<!-- Reviewable:end -->
2016-04-02 22:03:16 +05:30
bors-servo
c0bfcc5155 Auto merge of #10350 - mbrubeck:selection-chars, r=SimonSapin
Fix some char/byte bugs in textinput

Fixes #9569. r? @SimonSapin or @Ms2ger

<!-- 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/10350)
<!-- Reviewable:end -->
2016-04-02 20:53:26 +05:30
Emilio Cobos Álvarez
41708d753e style: Improve style::selector_matching documentation 2016-04-02 16:43:41 +02:00
Matt Brubeck
deca979967 TextInput::max_length should be in code units, not bytes 2016-04-02 07:33:53 -07:00
Emilio Cobos Álvarez
a57aa561c1 servo: Clean up unused variables and imports 2016-04-02 16:30:18 +02:00
bors-servo
0489280ded Auto merge of #10347 - mbrubeck:incremental-selection, r=pcwalton
Fix incremental reflow of text selection changes

r? @emilio or @pcwalton

CC @paulrouget: This fixes a bug in the browser.html URL bar auto-completion.

<!-- 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/10347)
<!-- Reviewable:end -->
2016-04-02 19:54:50 +05:30
bors-servo
d0f692b2c5 Auto merge of #10317 - jgraham:update-wptrunner, r=jdm
Update to latest wptrunner

<!-- 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/10317)
<!-- Reviewable:end -->
2016-04-02 18:58:56 +05:30
bors-servo
5e73e1015b Auto merge of #10363 - autrilla:issue#10357, r=emilio
Issue #10357: mach run -b now passes additional params to servo

Previously `./mach run` with the `-b` flag set ignored everything passed after the `--`, so for example when running `./mach run -d -b -- --help`, `--help` was not passed to servo - it is now.

<!-- 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/10363)
<!-- Reviewable:end -->
2016-04-02 18:01:13 +05:30
Adrian Utrilla
7f2c220335 mach run -b now passes additional params to servo 2016-04-02 13:49:56 +02:00
bors-servo
39d6b7988d Auto merge of #10333 - frewsxcv:textarea-links, r=mbrubeck
Add a spec links for <textarea> magic number constants.

<!-- 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/10333)
<!-- Reviewable:end -->
2016-04-02 16:34:39 +05:30
bors-servo
0a6c256873 Auto merge of #10332 - zofrex:patch-1, r=frewsxcv
Change OS X 10.11 to El Capitan

I think "El Capitan" is a lot clearer than 10.11 – I had to look up which version that was. Thoughts?

<!-- 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/10332)
<!-- Reviewable:end -->
2016-04-02 15:25:29 +05:30
bors-servo
0760e56bb6 Auto merge of #10327 - frewsxcv:get-prefix, r=ms2ger
Remove `get_*` on getters as per RFC 0344.

https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis

https://github.com/servo/servo/issues/6224

<!-- 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/10327)
<!-- Reviewable:end -->
2016-04-02 14:19:39 +05:30
bors-servo
f2b48d2764 Auto merge of #10301 - muralisr:master, r=emilio
Add git to list of packages to be installed

I tried to get started on Servo development but realised that a clean build of Ubuntu did not come with git out of the box. I had to manually install this before moving on with the next steps (clone and build).

<!-- 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/10301)
<!-- Reviewable:end -->
2016-04-02 13:13:33 +05:30
bors-servo
71428b5dda Auto merge of #10358 - emilio:stylo-again, r=bholley
Stylo again

This fixes some bugs in our bindings, the most important one being that we didn't repr(C) opaque types.

r? @bholley

<!-- 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/10358)
<!-- Reviewable:end -->
2016-04-02 10:30:35 +05:30
Matt Brubeck
776aae6399 Fix incremental reflow of text selection changes
Also replace force_relayout methods with direct Node::dirty calls, for
clarity.
2016-04-01 22:00:05 -07:00
Dongie Agnir
6f2bce779d Update expected outcomes for data-uri.htm 2016-04-01 18:27:05 -10:00