Commit Graph

6338 Commits

Author SHA1 Message Date
Patrick Walton
c2118ff4b1 servo: Merge #10458 - layout: Disallow margins from collapsing through block formatting contexts per CSS 2.1 § 8.3.1 (from pcwalton:block-formatting-context-margin-collapse); r=mbrubeck
Closes #10449.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 7d7404333d75cfd1aab3df07597304d5e78617b5
2016-04-15 05:31:28 +05:01
Per Lundberg
8d821a23f8 servo: Merge #10617 - Extracted Mako-based code generation invokation to separate .py files (from perlun:extract-build-properties-script-to-py-files); r=bholley
This breaks out some of the parts on #10586, that should be easily mergeable (hopefully pretty much a no-brainer really). The idea would be to let you review & merge it first, and then I'll complete the other PR rebase off of this stuff.

@bholley - I did like you suggested and broke it out for `geckolib` as well. The tests should also be running without problems (tested `./mach test-unit` locally).

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c51259e4064e76ac180210c724af61bf15f8640
2016-04-15 04:21:47 +05:01
Per Lundberg
2502211932 servo: Merge #10619 - mach: Added warning for update-cargo -a (from perlun:add-update-cargo-all-packages-warning); r=Wafflespeanut
To quote Lars Bergstrom:

> yeah, that's a giant footgun :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: db4481b4509db4be83e0f77a66884feccd1878e0
2016-04-15 02:36:48 +05:01
Nick Fitzgerald
180e3f6e00 servo: Merge #10589 - Take the stdout lock when printing profile data (from fitzgen:lock-stdout-when-printing-profile); r=larsbergstrom
Acquiring the stdout lock while printing the profile data prevents other
messages printed to stdout from being interleaved with prints from elsewhere.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9ffefe5620eca8d377ccdca81041328bcd48065
2016-04-15 00:34:54 +05:01
Alan Jeffrey
f99a66eceb servo: Merge #10609 - Make add_panic_object in thread.rs borrow rather than own the object (from asajeffrey:add-panic-object-borrows); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 4807dadf19175d38414130a74eb1163c65129ba6
2016-04-14 22:30:08 +05:01
Bobby Holley
119ed5405f servo: Merge #10556 - Automatically generate Gecko style struct setters for most keyword properties (from bholley:keyword_setters); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: e21e5551ec96831d7b001933b2e5588aff9fbccc
2016-04-14 21:29:34 +05:01
Josh Matthews
463637be20 servo: Merge #10610 - Replace instances of infallible unwrap with expect (from jdm:unwrap); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 415fd93a502b47c03d2eb856cbd76a99e0bf0392
2016-04-14 20:33:22 +05:01
Alan Jeffrey
d466d33083 servo: Merge #10587 - Added panic message to failures (from asajeffrey:add-failure-panic-message); r=Manishearth
Added the panic message to failures. This is a step towards #10334, since it gives us access to the panic error message when we fire a `mozbrowsererror` event. The remaining steps are also to record the backtrace, and to report the failure in the event.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2b910678db8b461dc50919832044bd95cdecb53e
2016-04-14 19:26:17 +05:01
Simon Sapin
031eaaddbf servo: Merge #10606 - Remove the url! plugin (from servo:remove-url-plugin); r=nox
In rust-url 1.0 the `Url` struct is going to have private fields, and there is no way to to create an aribitrary one without going through the parser.

The plugin never had a clear demonstrated performance benefit, it was made mostly because it was possible and relatively easy at the time.

This commit was originally part of #9840, but it’s taking a while to land and I keep removing new uses of `url!` when rebasing.

r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 3368565b3c6c76e5ce2d170d5c5cfb2f52a56956
2016-04-14 18:45:35 +05:01
Adrian Utrilla
d9ccc49a05 servo: Merge #10436 - Added Uniform{2i, 2iv, 2fv, 3f, 3i, 3iv, 3fv} (from autrilla:uniform2); r=emilio
@emilio r?

Source-Repo: https://github.com/servo/servo
Source-Revision: 7845d670d0c0af7c4782c547e62c4b737e345fad
2016-04-14 17:12:12 +05:01
Stephen (Ziyun) Li
098535fc49 servo: Merge #10594 - Remove containing_page_pipeline_id (from sliz1:10576); r=Ms2ger
Fixes https://github.com/servo/servo/issues/10569

Source-Repo: https://github.com/servo/servo
Source-Revision: 11f4d3f35609552feded6de56cc95aaf73ccc699
2016-04-14 13:41:11 +05:01
Bobby Holley
05c93f66b3 servo: Merge #10582 - Avoid moves of Gecko style structs (from bholley:no_move_style_structs); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 25ae04057cad391aeb0cf92e028bbe9adbbb4c25
2016-04-14 04:53:20 +05:01
Michael Howell
4c2a5b0394 servo: Merge #10579 - Propogate transformed clipping regions to nested flows (from notriddle:overflow_premature_clip); r=pcwalton
Fixes #10559

Source-Repo: https://github.com/servo/servo
Source-Revision: 84f01d1d7b1b1b893cbb28097b65c21c5fada8b3
2016-04-14 03:03:33 +05:01
Di Xu
586563bc29 servo: Merge #10566 - replace Fallible<()> with ErrorResult (from xudifsd:error-result); r=Ms2ger
Fixes #10541

Source-Repo: https://github.com/servo/servo
Source-Revision: 697300bb16ae2fc27e0ac507210f65de4254f33d
2016-04-14 02:22:48 +05:01
Josh Matthews
6f092d5e23 servo: Merge #10573 - Do not support XHR.responseXML in worker globals. Fixes #8931 (from jdm:xhrintermittent); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 4f6331953e3d6cdb40e2c96c9119a0a3298026c1
2016-04-14 01:42:26 +05:01
Tim van der Meij
6538e3505c servo: Merge #10489 - Replace use of debug! by warn! in constellation.rs (from timvandermeij:constellation-debug-warn); r=jdm
Fixes #10483.

Source-Repo: https://github.com/servo/servo
Source-Revision: 628c54948a02b1c947e916fb87b98d00d1e2d537
2016-04-14 00:21:05 +05:01
Emilio Cobos Álvarez
2650824e41 servo: Merge #10557 - layout: Take in account max and min inline size for inline fragments (from emilio:inline-block-max-width); r=pcwalton
Improves MDN.

r? @mbrubeck or @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 66c20b2ced7e982197f83bfe92ca6c12db8afba3
2016-04-13 23:40:52 +05:01
Maciej Skrzypkowski
32e74de6e4 servo: Merge #10563 - Test for check_spec function, for tidy.py #9152 (from mskrzypkows:tidy_tests); r=mbrubeck
Additional test for tidy.py

Source-Repo: https://github.com/servo/servo
Source-Revision: efd672344274758b4cc670fe170a812a29a3c736
2016-04-13 22:59:41 +05:01
Keith Yeung
3f162e1b39 servo: Merge #10189 - Implement CORS preflight fetch (from KiChjang:cors-preflight-fetch); r=jdm
Fixes #10145.

Source-Repo: https://github.com/servo/servo
Source-Revision: d21ff2fa137155e8db649c100886962300a58140
2016-04-13 20:59:25 +05:01
Saurav Sachidanand
77c1ecb4a7 servo: Merge #10565 - Update to byteorder 0.5 (from saurvs:master); r=Ms2ger
Finishes https://github.com/servo/servo/issues/10437.

Source-Repo: https://github.com/servo/servo
Source-Revision: d566f1c143e051b3c3d4ff9e9d8087af8b45dbd6
2016-04-13 19:58:50 +05:01
Corey Farwell
89915bdff2 servo: Merge #10558 - Implement sectionRowIndex property on <tr> (from frewsxcv:tr-SectionRowIndex); r=KiChjang
Fixes https://github.com/servo/servo/issues/10509.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9053721a328f904909c40e8ca4a5348faa0d59ad
2016-04-13 19:04:26 +05:01
Keith Yeung
3b180521d9 servo: Merge #10512 - Implement HTMLBaseElement attributes (from KiChjang:base-element-attr); r=Ms2ger
The remaining test failure in `base_multiple.html` looks like there's a problem with the test itself (it does not have a `<base>` tag at all).

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ad1b9134f17803f04ac94754e640e7f876799d8
2016-04-13 18:22:42 +05:01
Ms2ger
e1979bace5 servo: Merge #10564 - Remove a pointless Url clone (from Ms2ger:url-clone); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 9954ee1334e6224409bf82db620d80721f56bb13
2016-04-13 17:42:11 +05:01
Mauricio Collares
2c280715bf servo: Merge #10524 - Add some Gecko-supported CSS keyword properties (from mauricioc:keyword_values); r=SimonSapin
I have added all properties that are marked with (exactly) PARSE_VALUES and H | K in [0] to properties.mako.rs, as part of #10408. A few questions and remarks:

* I created a SVG style struct. Should those properties be somewhere else instead?
* I did not know what to do with ime-mode (which lives in nsStyleUIReset), so I did not include it.
* Servo already has a -servo-overflow-clip-box property, while Gecko has overflow-clip-box. Should those be consolidated?
* There is a code comment (marked with XXX) about scroll-snap-type-y. Should I add a <%self:longhand> template tag for that, similar to the one in overflow-y?

I am getting error E0053 while trying to run "./mach build-geckolib -r" on master, and the bholley/stylo branch doesn't support the products keyword argument yet, so I haven't exactly checked this compiles properly. It doesn't add any new compilation errors before the E0053 one, though.

Let me know if some extra information (say, a table saying where each property went) would be useful in the review process. r? @bholley

[0] https://docs.google.com/spreadsheets/d/1pSw2SjNxXZAQ19SAuNKcs5u4S7Zkc1ebEOkSP4oITUQ/edit?pref=2&pli=1

Source-Repo: https://github.com/servo/servo
Source-Revision: 0e953618d1070f2019f452318deac4a6ea375600
2016-04-13 17:02:12 +05:01
Ms2ger
9a70915e9a servo: Merge #10562 - Update gcc (from servo:gcc); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 650e3502f6e5dd4de1c1b1be3ced159d414fe4c3
2016-04-13 16:20:59 +05:01
Josh Matthews
c57148a88d servo: Merge #8658 - Implement origin concept and browsing contextless documents (from jdm:origin2); r=Ms2ger+jdm
These pave the way for implementing other parts of specifications more thoroughly.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9b57d8d686d361c0dfba1056523cbea12abd148b
2016-04-13 15:40:38 +05:01
Alan Jeffrey
466c19a211 servo: Merge #10554 - Fast fail_handle_script_loaded_url_in_iframe_msg (from asajeffrey:fast-fail-handle-script-loaded-url-in-iframe); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: aec297565b582f38960902d5590f83f3f9949696
2016-04-13 14:54:51 +05:01
Ulf Nilsson
8ad2bada64 servo: Merge #10497 - Share prefs to content processes (from kaksmet:multiprocess-prefs); r=pcwalton
Without this `./mach run -b -- -M` would start fine but navigating to a site would fail with:

`thread 'ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }' panicked at 'assertion failed: mozbrowser_enabled()', /Users/ulf/Documents/Code/servo/components/script/dom/htmliframeelement.rs:163`

Source-Repo: https://github.com/servo/servo
Source-Revision: e8e354d5d3e6757c16912e7f5e6234ec5eece493
2016-04-13 07:22:54 +05:01
Michael Howell
0bb050408c servo: Merge #10486 - Take transform:translate into account when computing clipping regions (from notriddle:overflow_premature_clip); r=pcwalton
Note that this only works for translation; a more general fix would
require major changes to how display lists work.

Closes #10431?

Source-Repo: https://github.com/servo/servo
Source-Revision: 7e63c1be63716e6f190416b512caa12afb4cda52
2016-04-13 06:43:38 +05:01
Stjepan Glavina
6a601b508f servo: Merge #10546 - Fix typo: cannot not outlive -> cannot outlive (from stjepang:fix-typo-in-jsrs); r=Ms2ger
A `Root` cannot outlive the `RootCollection` it is recorded in.
The docs were saying otherwise.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: bbcbd35095bdfcd9b8e7eb329209682e89408c72
2016-04-13 06:01:59 +05:01
Corey Farwell
626097e610 servo: Merge #10510 - Implement rowIndex property on <tr> (from frewsxcv:rowindex); r=KiChjang
Part of https://github.com/servo/servo/issues/10509.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fb5703c6dff0680aca32c50599f1782662d093c
2016-04-13 03:56:20 +05:01
Arnaud Marant
6bc6d2d94a servo: Merge #10545 - remove unreachable code in codegen (from amarant:unreachable-codegen); r=Ms2ger
code is unreachable after return, and identical to the upper block

Source-Repo: https://github.com/servo/servo
Source-Revision: 155e4052d150179ea8423a7ea626a84e25409718
2016-04-13 02:36:33 +05:01
Per Lundberg
fb40602db9 servo: Merge #10488 - Removed the T prefix for the style traits (from perlun:remove-t-prefix-on-style-structs); r=SimonSapin
More work as described in #10185.

I am getting _extremely_ weird compile-time errors with this one, when it's trying to expand the `lazy_static!` macro. I think I'll need help getting that part sorted out. The rest should be pretty OK.

Anyone has ideas on how to resolve it?

Source-Repo: https://github.com/servo/servo
Source-Revision: a4991f536cb60b70309358cbb4da46dfbe412b3d
2016-04-13 01:55:25 +05:01
Zhen Zhang
abd44774f2 servo: Merge #10538 - Improve PerformanceTiming Interface (from izgzhen:performance_timing); r=Ms2ger
Solving https://github.com/servo/servo/issues/10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

Source-Repo: https://github.com/servo/servo
Source-Revision: 421dcc92f05532e5d8bda850c8d14c9375da2bd9
2016-04-13 01:16:10 +05:01
akhan7
b05eeec25c servo: Merge #10543 - Implement image request concept for HTMLImageElement. Implement HTMLI… (from jdm:imageload); r=jdm
…mageElement.currentSrc.

Source-Repo: https://github.com/servo/servo
Source-Revision: 85f4e5828548f2f25b2d75cb2853b896a0854ab3
2016-04-13 00:35:28 +05:01
Yoav Alon
743c425c47 servo: Merge #9980 - Implement the table section IDL attributes for HTML tables (from yoava333:master); r=nox
a pull request that solves #9769.
I fixed on review note, and couldn't reproduce the second one.

Fixes #10506.

Source-Repo: https://github.com/servo/servo
Source-Revision: ea97c8905580e67e96ae00572d1c4e7af3d58736
2016-04-12 23:01:15 +05:01
Corey Farwell
150b4b9b03 servo: Merge #10523 - Add CSSOM 'Extensions to the HTMLImageElement Interface' in WebIDL (from frewsxcv:cssom-htmlimageelement-extension); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: dfb482a2b7fdb570f34e9092384fa74a3e1b54e3
2016-04-12 15:30:27 +05:01
David Zbarsky
7243084069 servo: Merge #10379 - Implement GetActiveAttrib (from dzbarsky:getActiveAttrib); r=emilio
@emilio

Source-Repo: https://github.com/servo/servo
Source-Revision: 376980fb570c8f68c04eaed0b22e9046856aaaa0
2016-04-12 14:49:28 +05:01
Corey Farwell
8bbdd70916 servo: Merge #10535 - Implement 'align' IDL attribute on '<hr>' (from frewsxcv:hr-align); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: f9608022caf7f223dfdfe960c31fb5fe7eb0d1f1
2016-04-12 10:49:14 +05:01
Patrick Walton
46e11f6e68 servo: Merge #10529 - layout: Make child stacking contexts of fixed position stacking contexts also fixed position (from pcwalton:nested-fixed-position-webrender); r=glennw
Improves YouTube.
Improves the Washington Post.

Closes #10526.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 150338503dce8f2ba7f2a6850dca253733a636a1
2016-04-12 10:09:11 +05:01
Alan Jeffrey
55e6d494fd servo: Merge #10534 - Re-enabled etc/ci/check_no_unwrap (from asajeffrey:reenable-check-no-unwrap); r=Manishearth
Got `etc/ci/check_no_unwrap.sh` to pass, and re-enabled it.

Source-Repo: https://github.com/servo/servo
Source-Revision: a61fc5285fa00915d538a9672c04030804f7db2d
2016-04-12 09:28:34 +05:01
Lars Bergstrom
dc833d15d9 servo: Merge #10528 - Invalidate appveyor cache when rust or cargo rev (from larsbergstrom:invalidate_cache); r=edunham
r? @edunham

AppVeyor builds are currently failing due to exceeding the cache size limits (https://ci.appveyor.com/project/servo/servo/history). This happened after the rustup. This patch should ensure we blow away the cache if the rust or cargo versions change.

See:
http://help.appveyor.com/discussions/questions/1788-multiple-build-cache-dependencies

Source-Repo: https://github.com/servo/servo
Source-Revision: ac062931e241d227d91da7e869608308b1172d4e
2016-04-12 08:07:49 +05:01
Keith Yeung
36fd3b91c3 servo: Merge #10522 - Various cleanups in HTMLInputElement (from KiChjang:input-cleanup); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 934ae41fc982058048f460a77687ab026c9a909f
2016-04-12 07:27:38 +05:01
Simon Sapin
a095bdc18b servo: Merge #10527 - Work around a Mako bug on Windows (from servo:cr); r=larsbergstrom
http://logs.glob.uno/?c=mozilla%23servo#c403766
https://i.imgur.com/j5Zv4LX.png
https://bitbucket.org/zzzeek/mako/issues/150/line-ending-handling-broken-on-win32

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 11927da1659baec54102fa4609001f073216d7b3
2016-04-12 06:44:22 +05:01
Arnaud Marant
1257225e1e servo: Merge #10505 - Issue #10491 add HTMLInputElement attributes that reflect content ide… (from amarant:10491-HTMLInputElement-attr); r=KiChjang
…ntically

it uses a new version of string-cache https://github.com/servo/string-cache/pull/148

Source-Repo: https://github.com/servo/servo
Source-Revision: 61865f66b515503971146b472ae0f8b747569fd0
2016-04-12 05:29:16 +05:01
Emilio Cobos Álvarez
7f3c31c248 servo: Merge #10224 - webgl: Add attribute validations and other nits (from emilio:shader-type-validations); r=jdm
Fixes https://github.com/servo/servo/issues/9958

Depends on a bunch of prs, and needs a test.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: f0014bd9cd5ac5db3e5a2f9fa8eafeb992df309a
2016-04-12 04:49:49 +05:01
Patrick Walton
a7b88944ec servo: Merge #10493 - gfx: Clamp the font size we supply to Core Text to 0.01pt (from pcwalton:inline-font-size-zero); r=mbrubeck
Core Text treats a font size of 0.0 as 12.0, which is obviously not what
we want.

Improves Twitter.
Improves Reddit /r/rust.

Closes #10492.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 65120756c06ee2d0357cca6357e30694a0ec6559
2016-04-12 04:10:37 +05:01
Daniel Robertson
53fc411e5c servo: Merge #10178 - Implement flexbox reordering (from danlrobertson:flex-order); r=SimonSapin
Add style property for `order` and implement reordering by this property
in flex flow. Based on previous work by @zentner-kyle.

Fixes: #9957
Source-Repo: https://github.com/servo/servo
Source-Revision: df21bb47d414a1ff068623b55e9da644d7239731
2016-04-12 02:48:50 +05:01
Jack Moffitt
0e81361445 servo: Merge #10445 - Use better JS engine defaults (from metajack:enable-asmjs); r=jdm
This adds in preferences for all the SM 39 available options (as
retrieved from Gecko), and uses the same defaults as Gecko. A few
properties are not supported yet, and incremental GC is still always
disabled regardless of the preference setting.

Source-Repo: https://github.com/servo/servo
Source-Revision: bc2237ea2ba3beac501ca4347b8118f3dccd9629
2016-04-12 02:08:05 +05:01
Ms2ger
fd279ded84 servo: Merge #10518 - Update smallvec (from Ms2ger:smallvec); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: b214205ba97cd031f19134431dae9bb4b9aecdb1
2016-04-12 00:04:53 +05:01