Commit graph

17187 commits

Author SHA1 Message Date
Alan Jeffrey
01b6e4a2c1 Removed sources of panic from piepline.rs. 2016-04-07 19:44:36 -05:00
bors-servo
c191dff04e Auto merge of #10361 - mbrubeck:empty-caret, r=pcwalton
Fixes for insertion point caret rendering

This contains several fixes for the code to position and render the insertion point.  The main effect is that the insertion point is now rendered correctly when in an empty input field.  See the individual commit messages for more detais.  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/10361)
<!-- Reviewable:end -->
2016-04-08 06:01:17 +05:30
Bobby Holley
4861d5add8 Add some machinery to allow us to disable CSS properties (or a subset of values for a property) on a per-product basis. 2016-04-07 16:31:31 -07:00
bors-servo
c0aa049b0a Auto merge of #9688 - KiChjang:worker-terminate, r=jdm
Implement Worker#terminate() (fixes #4427).

Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.

Rebased #6652, with some comments addressed.
Fixes #4427.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9688)
<!-- Reviewable:end -->
2016-04-08 05:01:18 +05:30
Matt Brubeck
66806229ad Prevent unnecessary copying in strip_leading_whitespace_if_necessary 2016-04-07 16:24:10 -07:00
Matt Brubeck
cac06e579c Remove unused argument to adjust_clipping_region_for_children 2016-04-07 16:22:51 -07:00
Matt Brubeck
e72ae2c25a Basic insertion point reftest 2016-04-07 16:09:44 -07:00
Matt Brubeck
32aad0838e Draw insertion point even for empty input fields
This allows text layout to generate an empty text fragment if the fragment
contains the insertion point for a text input box.
2016-04-07 16:09:35 -07:00
Matt Brubeck
831243af7c Fix insertion point layout for text runs with multiple fragments
Before this fix, if a TextRun containing an insertion point was split into
multiple ScannedText fragments, text layout would draw an insertion point
inside of each of the fragments.  This patch records the insertion point
position at most once per TextRun, and copies it only into the appropriate
ScannedText fragment.
2016-04-07 16:00:49 -07:00
Matt Brubeck
bcaa62e1bd Slight refactoring of RunMapping flush method 2016-04-07 16:00:14 -07:00
Joe Wilm
229b176321 Implement Worker#terminate() (fixes #4427).
Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.
2016-04-07 18:54:32 -04:00
Keith Yeung
54f139c5cf Implement HTMLTableElement#rows 2016-04-07 18:37:42 -04:00
bors-servo
eda8784c34 Auto merge of #10438 - KiChjang:text-decoration-fix, r=mbrubeck
Properly inherit text decorations

Fixes #8684.
Fixes #8783.

<!-- 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/10438)
<!-- Reviewable:end -->
2016-04-08 03:39:41 +05:30
Keith Yeung
b8971867f8 Properly inherit text decorations 2016-04-07 17:16:45 -04:00
bors-servo
1af756c07f Auto merge of #10462 - pcwalton:wrup3, r=glennw
servo: Update WebRender.

Closes #10256.

r? @glennw

<!-- 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/10462)
<!-- Reviewable:end -->
2016-04-08 02:46:23 +05:30
Stjepan Glavina
4f34422474 Fix rebasing error
This PR mistakenly removed JIT enabling/disabling by preference:
https://github.com/servo/servo/pull/10342/files
Look for `get_pref`.

I'm putting the missing piece of code into the appropriate place in
script_runtime.rs
2016-04-07 22:49:13 +02:00
Arnaud Marant
4dedd46af7 Issue #10456 Remove unused import warnings in HTMLLegendElement 2016-04-07 21:24:20 +02:00
Patrick Walton
0b839f6e32 servo: Update WebRender.
Closes #10256.
2016-04-07 11:59:14 -07:00
bors-servo
39ab006c8f Auto merge of #10402 - mbrubeck:make_mut, r=pcwalton
Avoid unnecessary Arc::clone and Arc::make_mut

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/10402)
<!-- Reviewable:end -->
2016-04-07 23:22:37 +05:30
Matt Brubeck
f7139484a2 Avoid unnecessary make_mut in inline border drawing 2016-04-07 09:29:31 -07:00
bors-servo
e66e437ae6 Auto merge of #10450 - pcwalton:overflow-scroll-non-positioned, r=mbrubeck
layout: Allow non-absolutely-positioned elements with `overflow: scroll` set to be scrolled.

This makes them establish stacking contexts, which is a CSS 2.1 spec
violation. However, we were already violating the spec here for
absolutely-positioned elements with `overflow: scroll`. It will probably
be easier to fix this spec violation once we either switch entirely to
WebRender or we have multiple layers per stacking context.

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/10450)
<!-- Reviewable:end -->
2016-04-07 21:30:13 +05:30
bors-servo
72eae39679 Auto merge of #9835 - mskrzypkows:tidy_tests, r=Wafflespeanut
Initial tests for tidy.py #9152

I've created tests for spaces check and license. Tell me if it's good direction so I'll add more tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9835)
<!-- Reviewable:end -->
2016-04-07 19:45:11 +05:30
Maciej Skrzypkowski
b8c9a288e9 tests for tidy.py #9152 2016-04-07 15:22:52 +02:00
bors-servo
a333f0fdd0 Auto merge of #10455 - servo:css-20160407, r=Ms2ger
Update CSS tests to revision aac1cd51245c0c469325988a0446985a2f1e476c

<!-- 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/10455)
<!-- Reviewable:end -->
2016-04-07 18:41:24 +05:30
Ms2ger
7deaeea707 Update CSS tests to revision aac1cd51245c0c469325988a0446985a2f1e476c 2016-04-07 15:10:43 +02:00
bors-servo
5cf89fea48 Auto merge of #10453 - Ms2ger:uuid, r=KiChjang
Update uuid.

<!-- 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/10453)
<!-- Reviewable:end -->
2016-04-07 16:18:20 +05:30
bors-servo
51766d4804 Auto merge of #10430 - stjepang:remove-url-base, r=Ms2ger
Remove URL.base (it was removed from the spec)

Spec: https://url.spec.whatwg.org/#concept-url-url
Discussion on IRC: http://logs.glob.uno/?c=mozilla%23servo&s=1+Apr+2016&e=1+Apr+2016#c397947

r? @nox

<!-- 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/10430)
<!-- Reviewable:end -->
2016-04-07 15:38:55 +05:30
bors-servo
e431bda9ea Auto merge of #10442 - autrilla:mach-caching, r=Wafflespeanut
Issue #10441: Added caching support to mach bootstrap

As suggested on the issue, files are stored as `.part` and moved to the original name when done.

<!-- 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/10442)
<!-- Reviewable:end -->
2016-04-07 14:06:54 +05:30
Adrian Utrilla
78b2c5d323 Added caching support to mach bootstrap 2016-04-07 08:10:42 +00:00
Ms2ger
489d2e5e49 Update uuid. 2016-04-07 09:00:22 +02:00
bors-servo
1a6245828a Auto merge of #10420 - asajeffrey:add-soft-fail-option, r=KiChjang
Added --soft-fail option.

At the moment, wptrunner always runs the WPT tests with `servo --hard-fail`. To test hardening, we need to switch off `--hard-fail`. This PR introduces a `--soft-fail` option to do that.

<!-- 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/10420)
<!-- Reviewable:end -->
2016-04-07 10:48:10 +05:30
bors-servo
dc3f199043 Auto merge of #10435 - jdm:glgenbump, r=Ms2ger
Fix warnings from old dependencies.

<!-- 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/10435)
<!-- Reviewable:end -->
2016-04-07 09:00:23 +05:30
Josh Matthews
7b9a7bdaec Remove gl_generator version exception. 2016-04-06 23:28:38 -04:00
Josh Matthews
12c04aa66d Update glutin. 2016-04-06 23:28:17 -04:00
Josh Matthews
8bcab909f7 Update rust-offscreen-gl-context. 2016-04-06 23:28:17 -04:00
Josh Matthews
d6d1fd1818 Update glx. 2016-04-06 23:28:17 -04:00
Patrick Walton
3518472f7c gfx: When dumping the display list, mention whether each layer scrolls
its overflow area.
2016-04-06 17:58:59 -07:00
Patrick Walton
1e884ddc69 layout: Allow non-absolutely-positioned elements with overflow: scroll
set to be scrolled.

This makes them establish stacking contexts, which is a CSS 2.1 spec
violation. However, we were already violating the spec here for
absolutely-positioned elements with `overflow: scroll`. It will probably
be easier to fix this spec violation once we either switch entirely to
WebRender or we have multiple layers per stacking context.

Closes #2742.
2016-04-06 17:58:47 -07:00
bors-servo
0b951f65b9 Auto merge of #10447 - antrik:update-ipc_channel-5, r=jdm
Update ipc-channel for two important bug fixes

This fixes https://github.com/servo/servo/issues/10260 by pulling in
https://github.com/servo/ipc-channel/pull/61 (fix receive for messages
close to packet size) and https://github.com/servo/ipc-channel/pull/62
(properly handle ENOBUFS); where the latter is not critical per se, as
there was a workaround already -- but that workaround aggrevated the
first bug, resulting in the urgent issue...

This bump requires a tidy override for `uuid`: `ipc-channel` was updated
to `uuid 0.2` in https://github.com/servo/ipc-channel/pull/63 (don't
know why...), while other crates are still with `0.1`. That was blocking
this urgent bug fix; and according to a discussion with @mbrubeck on
IRC, the override should be OK in this case.

<!-- 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/10447)
<!-- Reviewable:end -->
2016-04-07 05:18:03 +05:30
Olaf Buddenhagen
808244df63 Update ipc-channel for two important bug fixes
This fixes https://github.com/servo/servo/issues/10260 by pulling in
https://github.com/servo/ipc-channel/pull/61 (fix receive for messages
close to packet size) and https://github.com/servo/ipc-channel/pull/62
(properly handle ENOBUFS); where the latter is not critical per se, as
there was a workaround already -- but that workaround aggrevated the
first bug, resulting in the urgent issue...

This bump requires a tidy override for `uuid`: `ipc-channel` was updated
to `uuid 0.2` in https://github.com/servo/ipc-channel/pull/63 (don't
know why...), while other crates are still with `0.1`. That was blocking
this urgent bug fix; and according to a discussion with @mbrubeck on
IRC, the override should be OK in this case.
2016-04-07 01:32:09 +02:00
bors-servo
4cc241c858 Auto merge of #10433 - saurvs:pr3, r=emilio
Implement WebGLRenderingContext.getActiveUniform()

Fixes https://github.com/servo/servo/issues/10397

<!-- 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/10433)
<!-- Reviewable:end -->
2016-04-07 03:59:01 +05:30
Daniel Robertson
44832a87af Correct x and y input for origin_rect
Fix error in construction of the origin_rect for
UnioningFragmentBorderBoxIterator.
2016-04-06 18:11:59 -04:00
Matt Brubeck
d276e9bc4c Remove an unnecessary Arc::clone 2016-04-06 15:06:51 -07:00
bors-servo
256b865055 Auto merge of #10407 - mauricioc:issue10403, r=bholley
Move some CSS properties to match Gecko's representation

Fixes #10403. Animation had an extra transition-delay property, which was also moved to Box. Let me know if I should squash the commits.

<!-- 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/10407)
<!-- Reviewable:end -->
2016-04-07 03:18:15 +05:30
bors-servo
a5bc74be2f Auto merge of #10432 - autrilla:uniform, r=emilio
Added Uniform{1iv, 2f, 2fv}

The remaining ones need changes to webrender_traits, so I'll have to open a PR there too.

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/10432)
<!-- Reviewable:end -->
2016-04-07 02:38:03 +05:30
bors-servo
0e51be0c37 Auto merge of #10424 - asajeffrey:compositor-hardening, r=Wafflespeanut
Removed uses of unwrap in compositor.

Fixes #10421.

<!-- 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/10424)
<!-- Reviewable:end -->
2016-04-07 01:57:25 +05:30
bors-servo
b3b6a51e22 Auto merge of #10414 - larsbergstrom:mozjs_aarch_update, r=KiChjang
Update mozjs_sys to pick up Aarch64 fix

r? @Ms2ger @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/10414)
<!-- Reviewable:end -->
2016-04-07 01:15:59 +05:30
bors-servo
1b3ac81255 Auto merge of #10413 - larsbergstrom:appveyor_try, r=edunham
Do AppVeyor builds on the try branch

r? @edunham

This is required in support of https://github.com/servo/homu/pull/26

<!-- 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/10413)
<!-- Reviewable:end -->
2016-04-07 00:34:56 +05:30
bors-servo
35fbcbe9a8 Auto merge of #10410 - Ms2ger:update-webdriver, r=jdm
Update webdriver.

<!-- 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/10410)
<!-- Reviewable:end -->
2016-04-06 23:55:25 +05:30
bors-servo
14eabf0d32 Auto merge of #10173 - servo:rustup, r=nox
Bump Rust to 2016-04-06

<!-- 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/10173)
<!-- Reviewable:end -->
2016-04-06 23:14:55 +05:30