Commit Graph

5985 Commits

Author SHA1 Message Date
Michael Howell
b55c60ea5b servo: Merge #10419 - Whitespace stripping should not result in a dangling, open border (from notriddle:whitespace_border); r=mbrubeck
No open issue (found it while working on #7681).

Source-Repo: https://github.com/servo/servo
Source-Revision: cb943b016f77b9d670291c5026b8566b5c0d5edf
2016-04-06 15:01:51 +05:01
Stjepan Glavina
648f400956 servo: Merge #10351 - Implement URL.searchParams (from stjepang:impl-url-searchparams); r=Manishearth
Spec: https://url.spec.whatwg.org/#dom-url-searchparams
Closes #10335.

Source-Repo: https://github.com/servo/servo
Source-Revision: e36e3be855549ec86790c072808563538a950a41
2016-04-06 13:58:30 +05:01
Rahul Sharma
2c5ce6248a servo: Merge #10342 - Refactors some entities from script_thread into script_runtime (from creativcoder:script-runtime-module); r=Ms2ger
Fixes #10271.

Source-Repo: https://github.com/servo/servo
Source-Revision: 883cde424b61f4a06d52da5448da0095503b29b8
2016-04-06 12:52:21 +05:01
Hugo Thiessard
9d4146e815 servo: Merge #10319 - Issue #10284 Ignore alternate stylesheets (from Mylainos:Issue-#10284); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 6171188f595fa5585bf5e6609e97f90830b77281
2016-04-06 11:52:27 +05:01
Mauricio Collares
84d58f50b6 servo: Merge #10406 - Move CSS image-rendering property from Effects to InheritedBox (from mauricioc:issue10404); r=bholley
Fixes #10404

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d0e08638da02922353fb165c4d4f3aff59c2ab0
2016-04-06 01:03:03 +05:01
Paul Rouget
e3fd7bc0f2 servo: Merge #9811 - forcetouch events (from paulrouget:forceTouch); r=mbrubeck
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html

Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ff8adb09778402e88fe0d0ad92f4b399ca8ca01
2016-04-05 20:38:05 +05:01
zakorgyula
a6ec44c9e0 servo: Merge #10074 - Fix ./mach test-tidy --faster issue (from zakorgy:tidyfix); r=Wafflespeanut
issue #9778

Source-Repo: https://github.com/servo/servo
Source-Revision: a8ed5c3fc66ab9ea57b6b78311485040dae27328
2016-04-05 19:35:54 +05:01
dhaval0603
f4a65d8ac1 servo: Merge #10399 - Private browsing - Initial steps (from jdm:pb); r=jdm
Rebase of #10160.

Source-Repo: https://github.com/servo/servo
Source-Revision: d1e8b79583a6d9ff5a0860307d55b72b7177f77a
2016-04-05 17:12:11 +05:01
Arnaud Marant
dbd229e3c8 servo: Merge #10362 - Issue #10348 Implement StringMozPreference, string preferences, WPT test (from amarant:10348-string-preferences); r=jdm
I'm not exactly sure of the wanted semantics with boolean values.

Fixes #10348.

Source-Repo: https://github.com/servo/servo
Source-Revision: 17ffc6cf71278813885474b0135e268ac0eda081
2016-04-05 15:37:26 +05:01
Manish Goregaokar
32b3bd0a3d servo: Merge #10329 - Skip printing the backtrace for RecvError/SendError (from Manishearth:skip-backtrace); r=asajeffrey
We currently get tons of useless backtraces clogging up the output when we have a panic cascade. This adds a handler that outputs a single line when a thread panics due to a sender or receiver hanging up, since this is almost always due to a panic cascade.

We could add a commandline arg that gets us back the old behavior, though I'm not sure if this is necessary.

r? @asajeffrey

Source-Repo: https://github.com/servo/servo
Source-Revision: 05a4dcdc3b38c0222ac417f826e06ce9d47068b2
2016-04-05 12:33:01 +05:01
Ar13mis
3251d911d8 servo: Merge #10356 - WebGL: add Uniform2f (from this-jacob:add_uniform2f); r=emilio
Currently blocked on servo/webrender_traits#30

Source-Repo: https://github.com/servo/servo
Source-Revision: 95c410830c2cebcad2cf187c44e00343486e6e46
2016-04-05 07:01:42 +05:01
Stjepan Glavina
6516d44f83 servo: Merge #10325 - Add preferences to enable/disable the JITs (from stjepang:pref-disable-jit); r=mbrubeck
When creating a runtime (script.rs), we check prefs and then enable or
disable the JITs (Baseline and Ion) accordingly.

Closes #10278.

Source-Repo: https://github.com/servo/servo
Source-Revision: 863c905025e75e7119539c832e4e4647f44d90bb
2016-04-05 05:21:13 +05:01
Josh Matthews
09fdd0420f servo: Merge #10400 - Update block package to reduce warnings (from jdm:block); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d6c5fd8dabe51365f72fcbfa90eb16115a274110
2016-04-05 04:23:24 +05:01
Adrian Utrilla
340cfcacf8 servo: Merge #10391 - Inlined content_changed (from autrilla:inline-content-changed); r=Ms2ger
cc @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: b568b72d760623462fe1a19544e1ad59f98e4480
2016-04-05 01:08:55 +05:01
Emilio Cobos Álvarez
cfdb9792b3 servo: Merge #10377 - geckolib: All bindings aligning properly! (from emilio:geckolib); r=bholley
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

Source-Repo: https://github.com/servo/servo
Source-Revision: 8dd24fa783eb28f3c4f0beacae33ba1b947b1f36
2016-04-05 00:09:15 +05:01
Emilio Cobos Álvarez
74d1661a85 servo: Merge #10365 - servo: Clean up unused variables and imports (from emilio:warnings); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: a29da7b48e41327aa7226bda8bea7b00dac88b6c
2016-04-04 23:10:31 +05:01
Daniel Robertson
85586d4677 servo: Merge #10330 - Compute available main and cross size of flex containers (from danlrobertson:flex-axes); r=SimonSapin
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

Source-Repo: https://github.com/servo/servo
Source-Revision: 2477cfc9b4ef7529c57806c91e5993d5734fd66b
2016-04-04 20:49:45 +05:01
Bobby Holley
4d37b3664d servo: Merge #10359 - Implement construction, destruction, and copying of gecko style structs (from bholley:style_struct_management); r=SimonSapin
This requires some new machinery on the gecko side, which I'll get up in bugzilla shortly.

Source-Repo: https://github.com/servo/servo
Source-Revision: a3b55d68a84dac301b3bc40d2444934b7df8e167
2016-04-04 19:42:29 +05:01
David Zbarsky
6882ae5bcf servo: Merge #10372 - Implement nodeName on Attr (from dzbarsky:rmAttrNS); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ca3d120f4abaa40c9377ac450420372fd00cf668
2016-04-04 17:43:32 +05:01
Per Lundberg
37f2322351 servo: Merge #10354 - HTMLScriptElement: Added missing DOM properties (from perlun:implement-missing-html-script-element-attributes); r=Ms2ger
This should sort out most (all?) of the ones pointed out in #10227.

/cc @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 3b2a1a3c47b4d10b25c6ac5546e027185907b7fa
2016-04-04 16:52:22 +05:01
Rizky Luthfianto
629a825885 servo: Merge #10034 - Implement Document#elementsFromPoint (from rilut:implement-elementsfrompoint); r=emilio
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 241518a7d2c26da421d0273f101550215576c5a7
2016-04-04 12:19:39 +05:01
Dongie Agnir
ac85db0c46 servo: Merge #9972 - Xhr data (from dagnir:xhr-data); r=KiChjang
Builds on existing work by @emosenkis.  Fixes #8015.

Source-Repo: https://github.com/servo/servo
Source-Revision: d35ae3beb73158ec4c9ab20b3361e948379a4c90
2016-04-03 20:16:36 +05:01
Matt Brubeck
7ecbeffea6 servo: Merge #10360 - Remove unused -Z dump-display-list-optimized flag (from mbrubeck:die-opt); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: f6c29249360134b2a437de0674f606b36327bfb1
2016-04-03 18:06:01 +05:01
Adrian Utrilla
001f9b367f servo: Merge #10369 - Issue #10368: Implemented Uniform4iv and Uniform4i (from autrilla:Uniform4iv); r=emilio
Uniform4iv can make use of Uniform4i, so I implemented both.

Source-Repo: https://github.com/servo/servo
Source-Revision: 88d29e537cb3e92cc39804eabca7cb347c1417e9
2016-04-03 11:19:47 +05:01
Connor Brewster
d0bd2f8d97 servo: Merge #10215 - WebGL: Finish, Flush, DetachShader, GenerateMipmap (from cbrewster:webgl_finish); r=emilio
Implements #10212 and #10213

r? @emilio

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b32e63db843b4ac534c33a87ed53a4acf9b6da7
2016-04-02 23:39:47 +05:01
Alan Jeffrey
9c1f3dfa8f servo: Merge #10343 - Comment explaining constellation panic for recv (from asajeffrey:document-constellation-recv-panic); r=jdm
A retry of #10294, which was closed due to homu issues.

Source-Repo: https://github.com/servo/servo
Source-Revision: 85f9f9626eaff12b66299eb6190955f2726b432c
2016-04-02 22:39:45 +05:01
Emilio Cobos Álvarez
d67b82405a servo: Merge #10366 - style: Improve style::selector_matching documentation (from emilio:style-docs); r=SimonSapin
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f4929d52dd33bcb3e231e776179314304fe1889
2016-04-02 21:34:16 +05:01
Matt Brubeck
717538ceb7 servo: Merge #10350 - Fix some char/byte bugs in textinput (from mbrubeck:selection-chars); r=SimonSapin
Fixes #9569. r? @SimonSapin or @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: c0bfcc5155ec559e8976d684ac463229a4487277
2016-04-02 20:24:26 +05:01
Matt Brubeck
8d45354231 servo: Merge #10347 - Fix incremental reflow of text selection changes (from mbrubeck:incremental-selection); r=pcwalton
r? @emilio or @pcwalton

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

Source-Repo: https://github.com/servo/servo
Source-Revision: 0489280ded90d658b4024f4334e2d58cc627b643
2016-04-02 19:25:50 +05:01
Adrian Utrilla
3b0f97c6a2 servo: Merge #10363 - Issue #10357: mach run -b now passes additional params to servo (from autrilla:issue#10357); r=emilio
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e73e1015b588da6b641a7a4175e51430d9b7019
2016-04-02 17:32:13 +05:01
Corey Farwell
cfe06a11a4 servo: Merge #10333 - Add a spec links for <textarea> magic number constants (from frewsxcv:textarea-links); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 39d6b7988d0f6f49d228ca2bc3df2919d31770ae
2016-04-02 16:05:39 +05:01
James 'zofrex' Sanderson
0f012d524c servo: Merge #10332 - Change OS X 10.11 to El Capitan (from zofrex:patch-1); r=frewsxcv
I think "El Capitan" is a lot clearer than 10.11 – I had to look up which version that was. Thoughts?

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a6c2568730bc85b6b98c6c1a5eccd3b4ba9a541
2016-04-02 14:56:29 +05:01
Corey Farwell
491d163fd9 servo: Merge #10327 - Remove get_* on getters as per RFC 0344 (from frewsxcv:get-prefix); r=ms2ger
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis

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

Source-Repo: https://github.com/servo/servo
Source-Revision: 0760e56bb66e38a16543ed24385c29fd7c4a034b
2016-04-02 13:50:39 +05:01
Murali Ramanujam
1f230f6ede servo: Merge #10301 - Add git to list of packages to be installed (from muralisr:master); r=emilio
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).

Source-Repo: https://github.com/servo/servo
Source-Revision: f2b48d2764c88970d9fbf654e59fe135b6c79629
2016-04-02 12:44:33 +05:01
Emilio Cobos Álvarez
cd35a4e119 servo: Merge #10358 - Stylo again (from emilio:stylo-again); r=bholley
This fixes some bugs in our bindings, the most important one being that we didn't repr(C) opaque types.

r? @bholley

Source-Repo: https://github.com/servo/servo
Source-Revision: 71428b5ddaa2d9b680c5b6678917a8c5c7bf5c90
2016-04-02 10:01:35 +05:01
Matthew Bentley
beda4031dd servo: Merge #10114 - Load prefs.json from profile-dir if --profile-dir is specified at launch (from matthewbentley:master); r=Manishearth
In response to #10098
Tries to load `prefs.json` from the profile-dir and merge them into the preferences if `--profile-dir` is specified at launch.  The profile-dir preferences take precedence over the default preferences, but command line preferences still take precedence over everything.

Also adds some tests for `prefs.rs`.  These rely on the contents of `resources/prefs.json` (at least `test_get_set_reset_extend()` does), so they may need to be re-worked a bit.

Source-Repo: https://github.com/servo/servo
Source-Revision: ea24389b85980e7099036abe33dc4837c191d141
2016-04-02 08:04:42 +05:01
Patrick Walton
2fab5bca57 servo: Merge #10349 - servo: Update WebRender (from pcwalton:wrup2); r=glennw
Closes #10307.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 5bb38aa03b5b83dadfa675591dd8bd5cfb31a7f0
2016-04-02 06:44:02 +05:01
Paul Rouget
356d7ad3b3 servo: Merge #10336 - Make it possible to use preferences to configure webrender and titlebar (from paulrouget:morePrefs); r=KiChjang
It's getting tiring for browserhtml to run servo with so many options:

`servo -w -b --pref dom.mozbrowser.enabled --pref dom.forcetouch.enabled http://localhost:6060`.

We want to be able to control all of these with preferences (we have a custom pref file).

Only webrender and titlebar are not controllable via a pref. This PR makes it possible.

Source-Repo: https://github.com/servo/servo
Source-Revision: c4208e67b744b1d30f29c8ea1eb268f00b8e4ce7
2016-04-02 05:42:46 +05:01
Patrick Walton
7edb31d6c7 servo: Merge #10331 - gfx: Simplify complex clipping regions as we construct them (from pcwalton:simplify-complex-clipping-regions); r=glennw
This allows WebRender to correctly render complex clipping regions that
can be reduced to single rounded rectangles. WebRender still can't
render rounded rectangles with arbitrary intersections yet, but this
allows it to handle many more cases.

Closes servo/webrender#241.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e215177962a50f1cfd9f21d95ecfd3a76a31602
2016-04-02 04:34:07 +05:01
UK992
677766e7cc servo: Merge #10340 - Appveyor: Cancel unnecessary builds on 'auto' branch (from UK992:win32); r=larsbergstrom
This simple script will cancel build on ```auto``` branch if same commit already exist in ```master```.
As a part of solution mentioned in https://github.com/servo/servo/issues/9953

Tested:
Commit on master: [Appveyor/1.0.300](https://ci.appveyor.com/project/UK992/servo-hga0y/build/1.0.300)
Same commit on auto: [Appveyor/1.0.302](https://ci.appveyor.com/project/UK992/servo-hga0y/build/1.0.301)
Different commit on auto:  [Appveyor/1.0.302](https://ci.appveyor.com/project/UK992/servo-hga0y/build/1.0.302)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 5333f564cd2f97ad78d2edc53f3791461b4b9244
2016-04-02 03:19:33 +05:01
Patrick Walton
7dc62af17a servo: Merge #10321 - compositing: Send only one mouse move event if WebRender is in use (from pcwalton:webrender-mouse-move); r=glennw
In WebRender mode, we were sending two mouse move events: one with the
proper coordinates and one with the wrong coordinates, because of
incorrect fall-through. The script task would usually (but not always,
depending on timing) ignore the first event in favor of the second
event, resulting in incorrect mouse move event coordinates in most
cases.

Closes servo/webrender#238.
Closes #10298.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 0bf0f61a56eae3e3797c73847763e6c8b882d160
2016-04-02 01:27:39 +05:01
Josh Matthews
fcfe4f1b87 servo: Merge #10312 - Report errors from ScriptPort trait methods (from servo:ScriptPort); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 6056b16a7714c42e4ff67d2bccb27650d549eae4
2016-04-02 00:35:31 +05:01
Paul Padier
40f1fb06a2 servo: Merge #9911 - Do not use lookup tables for put_image_data (from magni-:dont_use_lookup_tables); r=michaelwu
Fixes #9599

"This is the first Rust code I have ever written" (and also my first time writing real browser code, it's been quite the learning experience).

Some questions:

> For really fast CPU results, use integer SIMD instructions to handle more than one pixel at a time.

This was out of the scope of #9599, right? I started looking into doing that, but it seems to be a lot more work than the `E-easy` label would suggest. [`std::simd`](https://doc.rust-lang.org/1.0.0/std/simd/index.html) is marked as "unstable", is that a blocker?

> 128 can be added before dividing to round more accurately.

@michaelwu, what did you mean by that?

Also, the #9599 is `Do not use lookup tables for {Get,Put}ImageData operations`, but we only use lookup tables for the `Put`, not the `Get`, right?

Sorry for all the noobish questions.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e4a213c73d49641fdfbf83c31152295d4856ae0
2016-04-01 23:28:19 +05:01
Ms2ger
8531be300e servo: Merge #10304 - Implement Document::cookie correctly for cookie-averse documents (from Ms2ger:cookie-averse); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 7d79df4a05948e0ce6e3abc6bef0f833d8bf541e
2016-04-01 22:22:51 +05:01
Matt Brubeck
fb608acd65 servo: Merge #10299 - Set a default ::selection style (from mbrubeck:selection-style); r=jdm
Since we no longer have a hard-coded default after #10252.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0397e2a24d3e5c988b089ef100002397f4cabdfa
2016-04-01 19:46:32 +05:01
Alan Jeffrey
32e63d851d servo: Merge #10295 - Miscellaneous fixes to harden the constellation (from asajeffrey:remove-constellation-misc-panic); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 7f06b467a4ed988154bae3bb58c235b969e750c8
2016-04-01 18:45:48 +05:01
Bobby Holley
35b85ab9ed servo: Merge #10293 - Tweak gecko bindings (from bholley:tweak_bindings); r=emilio
A few changes as discussed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 95819a4334526751168de0b9868dbd76e27b0d57
2016-04-01 16:23:30 +05:01
Rahul Sharma
707ce17295 servo: Merge #10272 - implements data-url fetching (from creativcoder:implement-data-url-fetch); r=jdm
Fixes #10165
jdm mentioned of decoupling the, payload loading mechanism to data_loader.rs. So accordingly a `decoder` method has been added to data_loader.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9f892edd87441393e5de00790a5abb7fc93a09de
2016-04-01 14:43:30 +05:01
Mohamed Albashir
8446a0072d servo: Merge #10292 - Initial steps for CSSOM (from jdm:cssom); r=jdm
Squashed and rebased #10133.

Source-Repo: https://github.com/servo/servo
Source-Revision: f335586ff538004c708d836876b359704ebed86a
2016-04-01 04:00:08 +05:01
Alan Jeffrey
d1ced17746 servo: Merge #10082 - Removed panicking when frame or pipeline lookup fails (from asajeffrey:remove-constellation-panic); r=glennw
Removed the methods `pipeline(id)`, `pipeline_mut(id)`, `frame(id)` and `frame_mut(id)` from constellation, which panicked when the table lookup failed.

The panics were causing race conditions, e.g. visiting google.com and resizing the page would cause a panic, most likely due to an iframe being added and removed, with the `DOMLoad` event arriving after the iframe had been removed, causing a panic.

This patch fixes #10017 and #8769 (although in non-webrender builds there's now a different panic, see https://github.com/servo/servo/issues/10017#issuecomment-198160200).

There are a few `TODO` items in the initial commit, for cases where it's not completely obvious what to do in the case of failure.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7518c4de9317af3a643fc35131e556104b8693fa
2016-04-01 03:01:57 +05:01