Граф коммитов

6056 Коммитов

Автор SHA1 Сообщение Дата
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
Jan-Fabian Humann b60a127aa6 servo: Merge #10291 - #10211: Stop re-exporting webrender_traits WebGL types from canvas_traits (from jfhumann:10211); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 524a004e771b465e3de9ebbc33816e50949d6a25
2016-04-01 01:28:20 +05:01
Josh Matthews 7bc8e96798 servo: Merge #10288 - Enable dictionaries in WebIDL sequences. Fixes #10282 (from jdm:dictseq); r=nox
r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: acaac52be7973cfbf6621796d4fb944fbfd343ff
2016-03-31 23:59:13 +05:01
Nazım Can Altınova a843e1077a servo: Merge #10249 - Make input elements not inherit parent containers alignment (from canaltinova:master); r=jdm
Fixes  #10234 .

Source-Repo: https://github.com/servo/servo
Source-Revision: f10c01cd39842e7a98198e8b9edd11fb59306157
2016-03-31 22:21:29 +05:01
Emilio Cobos Álvarez 60604e63ea servo: Merge #10302 - Update webrender to master (from emilio:webrender-up); r=nox
I'll rebase #10224 against it.

Sorry for the blocking of #10224, I expected it to be reviewed way sooner, my fault for landing breaking changes.

r? @nox or @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 84a3dee67ea7a45d6ec505f59c7a55162621f11e
2016-03-31 21:22:06 +05:01
Connor Brewster a24820d19d servo: Merge #10202 - Added a mapping between nodes and stylesheets (from cbrewster:stylesheet-node-mapping); r=nox
Currently a work in progress solution for #10143.

I am not sure how to make the stylesheets() func return a `Ref<Vec<Arc<Stylesheet>>>` or if this way work just as well.

If anyone has any feedback, that would be great.

Source-Repo: https://github.com/servo/servo
Source-Revision: b38fafcf11d2588fecc565c581260106411ad484
2016-03-31 20:19:03 +05:01
Anthony Ramine 12fc784f37 servo: Merge #10285 - Use serde in devtools (from nox:devtools-serde); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 3c00aff5468e8ac1bc88b9fc01aa6091f9552d95
2016-03-31 18:07:13 +05:01
Anthony Ramine 63c293056b servo: Merge #10297 - Update webrender with crates.io's offscreen_gl_context (fixes #10296) (from servo:the-offscreens); r=pcwalton
Crate webrender is bumped to the first commit in https://github.com/servo/webrender/pull/248.
Crate webrender_traits is bumped to the merge of https://github.com/servo/webrender_traits/pull/21.

Source-Repo: https://github.com/servo/servo
Source-Revision: 436f7316d97eabff4238c774a8ff7cc66fca08a0
2016-03-31 06:13:31 +05:01
Ms2ger 5d89cb8c05 servo: Merge #10287 - Include square brackets for IPv6 addresses in Document::domain (from Ms2ger:domain); r=jdm
The specification changed out from under us.

It's unfortunately impossible to write a test for this right now.

Source-Repo: https://github.com/servo/servo
Source-Revision: af06d32628bafe50e82a17e50d3daea2981974f2
2016-03-31 05:15:10 +05:01
Bobby Holley d55b0616bc servo: Merge #10275 - Use more mako machinery in geckolib (and make a few small changes to style/properties.mako.rs) (from bholley:style_struct_templates); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: ed9c64e827a1dd935ac9fa2e7127dafad0a5f29e
2016-03-31 04:17:11 +05:01
Ms2ger 1a64fe5c0b servo: Merge #10268 - Stop reference-counting Runtime for workers (from Ms2ger:rc-runtime); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: e5e559d414e58d57d8e4f59bbd55da1646d59017
2016-03-31 03:12:19 +05:01
Emilio Cobos Álvarez 6a77e7f71e servo: Merge #10252 - Implement ::selection pseudo-element (from emilio:selection); r=mbrubeck
It only supports `color` and `background`, for now, but it shouldn't be hard to add more properties (like text-shadow).

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 723989b9dddeb9bcdc28dc7d640fd6fd7247a27f
2016-03-31 00:18:07 +05:01
Josh Matthews f355df791e servo: Merge #10238 - Run unit tests on appveyor (from jdm:winunit); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: e1485718128bff632eff5445583e925ff796bdba
2016-03-30 19:29:30 +05:01
Alan Jeffrey 308d5371ce servo: Merge #10242 - Replace any uses of .send().unwrap() by .send().unwrap_or_else() (from asajeffrey:remove-constellation-send-panic); r=metajack
This is part of the effort to harden the constellation (#10124), in this case against panics caused by channel send.

Source-Repo: https://github.com/servo/servo
Source-Revision: 821afa071e0bb4aa3c48f35b44ab8984a1ec92bc
2016-03-30 18:37:38 +05:01
Ms2ger 18913738bd servo: Merge #10283 - Update js (fixes #10229) (from servo:js); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 4aa1da3211207512ef8bc8647a68869702ffed52
2016-03-30 16:14:35 +05:01
Michael Howell 7a54015497 servo: Merge #10279 - Fix #10258 (from notriddle:issue_10258); r=mbrubeck
Respect border-box when computing the relative sizes of children.

Source-Repo: https://github.com/servo/servo
Source-Revision: 77444d00be7b6346b632385cb0c1f5e858ff50a2
2016-03-30 12:19:40 +05:01
Emilio Cobos Álvarez a04bff3a7f servo: Merge #10276 - Update struct bindings to take alignment into account (from emilio:stylo-fixes-and-doc); r=bholley
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

r? @bholley

Source-Repo: https://github.com/servo/servo
Source-Revision: 21e4936f6a4a99ed7071a8c94bc6e1d418944e67
2016-03-30 11:26:55 +05:01
Per Lundberg 206f878009 servo: Merge #10277 - Renamed TComputedValues to ComputedValues (from perlun:rename-tcomputedvalues-to-computedvalues); r=SimonSapin
This is a followup to #10210, and a continuation of #10185.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ec96ac02a6c40ffda98e1074ceb9874dd1fb3cb
2016-03-30 10:35:57 +05:01
Josh Matthews f34a74022c servo: Merge #10269 - Fix some warnings (from jdm:cefwarn); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f6d60a716c35f8ec968d259bfa1ffa606d8d15d1
2016-03-30 08:15:37 +05:01
Matt Brubeck d6e77ef96b servo: Merge #10255 - Reduce size of layout::fragment::Fragment struct (from mbrubeck:box-unscanned); r=pcwalton
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 44b2ba25471e77b89b417161beb312a2985791a1
2016-03-30 07:20:25 +05:01
Rebecca 03f0c49914 servo: Merge #10019 - Fix htmllabelelement click to activate correct element (from rebstar6:htmllabelclick); r=jdm
Address https://github.com/servo/servo/issues/9928

Pass on label click to the label element's labeled control

Source-Repo: https://github.com/servo/servo
Source-Revision: 80d903a89725db081913f82515dc492ef711b829
2016-03-30 05:12:00 +05:01
Michael Howell e55bc0223c servo: Merge #8496 - Fix #8443 (from notriddle:master); r=jdm
When there are viewport constraints, use the new window size to compute the viewport instead of the old one.

Source-Repo: https://github.com/servo/servo
Source-Revision: 210a2431370bc963e736917cff0483dc5d06e9cd
2016-03-30 02:34:05 +05:01
Ms2ger fbf1c2ac45 servo: Merge #10265 - Remove dead code that used to support the legacy reftest framework (from Ms2ger:reftest); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e19d9c45965c05397172daae96f92133139d0d11
2016-03-29 21:23:48 +05:01
Ms2ger 453a07f458 servo: Merge #10267 - Simplify channel usage in canvas paint threads (from Ms2ger:canvas-channels); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: df808bed20a097719992f3c355bd164c4abc8913
2016-03-29 19:38:54 +05:01
Per Lundberg ad08fc1cc0 servo: Merge #10210 - ComputedValues is now ServoComputedValues (from perlun:rename-computedvalues-to-servocomputedvalues); r=SimonSapin
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 639fdd6b128e0cfd418e4ae0dd78de3f5aecac4c
2016-03-29 17:56:40 +05:01
Eduard Burtescu 74f1f8b080 servo: Merge #10247 - Use <base> in resolving url attributes (like "href") (from eddyb:document-base-url); r=Ms2ger
Second take of #6303, now that the `base_url` infrastructure is in place.

Source-Repo: https://github.com/servo/servo
Source-Revision: c4e112a3be6930e6373483f6e42279d0682b3a48
2016-03-29 16:42:12 +05:01
Patrick Walton bff513d996 servo: Merge #10248 - layout: Only take nonnegative margins into account when estimating inline placement of floats (from pcwalton:float-speculation-with-negative-margins); r=mbrubeck
Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!

Closes #10237.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 3f733217109a98f559904ebf9935e43e553bd076
2016-03-29 15:35:01 +05:01
Matt Brubeck 610e3a8057 servo: Merge #10246 - Restore stripped whitespace before reflowing text fragments (from mbrubeck:strip-leading); r=pcwalton
Fixes #10200. r? @pcwalton

Note: The reftest uses a transition of non-zero duration, because I couldn't find any other way to reproduce the bug.  Unfortunately this makes it unreliable in debug builds. I tried to fix this using reftest-wait with setTimeout and requestAnimationFrame, but it still wouldn't complete the animation consistently.  To make the test work in debug builds we may need `transitionend` events (#10245) or a different way to reproduce the bug.

Source-Repo: https://github.com/servo/servo
Source-Revision: 159be44193ef7d60a5c35629d791323e5357e7db
2016-03-29 14:01:40 +05:01
Jussi Räsänen 38a13b3488 servo: Merge #10208 - Generate html and json of supported css properties (from jrasanen:jr/issue10196); r=SimonSapin
Fixes #10196. Outputs html and json of supported css properties to `target/doc/` directory when deploying github-pages.

Source-Repo: https://github.com/servo/servo
Source-Revision: df73a18a61e57f62e2e17541d45dcd3818b35b7c
2016-03-29 13:05:08 +05:01
Michael Howell f47e88f413 servo: Merge #8641 - No more headless compositor. Just the normal one (from notriddle:no_headless); r=glennw
Fixes #8573

Source-Repo: https://github.com/servo/servo
Source-Revision: aac2da75f40f4c55a4b450b6d9d134429fcf741e
2016-03-29 12:13:01 +05:01