Commit graph

15356 commits

Author SHA1 Message Date
Josh Matthews
320d9db616 Upgrade ipc-channel to diagnose #8961. 2016-01-28 14:53:04 -05:00
bors-servo
55d4773311 Auto merge of #9061 - mathieuh:setNameItem, r=eefriedman
Implement SetNamedItem and SetNamedItemNS

@nox Can you add the "it needs tests" tag or so?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9061)
<!-- Reviewable:end -->
2016-01-28 17:06:41 +05:30
Mathieu Hordesseaux
322b120f8a Implement SetNamedItem, SetNamedItemNS, SetAttributeNode and SetAttributeNodeNS 2016-01-28 12:35:44 +01:00
bors-servo
bc44ae679f Auto merge of #9401 - glennw:raf-timing, r=jdm
Fixes additional calls to rAF.

Often, a rAF callback will request another rAF from the callback itself.

Previously, the constellation would quickly receive two messages saying
that there were no animations, and then there are animations again in the
situation above. This would make the compositor tick the new animation straight
away, causing strange fluctuations and timings in rAF callbacks.

Instead, only send the NoAnimationCallbacks message if the animation
callback queue is still empty after invoking the callbacks.

This fixes rAF timing, which now runs at the correct (vsync) framerate.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9401)
<!-- Reviewable:end -->
2016-01-28 11:18:24 +05:30
bors-servo
0cd034041f Auto merge of #9445 - servo:bump-ipc-channel, r=jdm
Upgrade ipc-channel dependency.

dfd8513d80...4cc8773bfb

Attempt to fix https://github.com/servo/servo/issues/8815

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9445)
<!-- Reviewable:end -->
2016-01-28 09:49:26 +05:30
Corey Farwell
d2166cd5d5 Upgrade ipc-channel dependency.
dfd8513d80...4cc8773bfb

Attempt to fix https://github.com/servo/servo/issues/8815
2016-01-27 22:24:20 -05:00
Glenn Watson
6a85102a5a Ensure that when outputting screenshots, animations are ticked as required.
Fixes timeout in transition_calc.html.
2016-01-28 11:49:47 +10:00
bors-servo
0fa9d32c69 Auto merge of #9421 - jdm:iframe-painting-after-navigation-redux, r=jdm
compositing: Fix a couple of bugs that prevented iframes from painting after navigation.

The first bug was that iframes were not reflowed in their parent DOM when the child page navigated. This is fixed by simply having the constellation notify the appropriate script thread when navigation occurs.

The second bug was that the compositor was unable to adjust the pipeline for existing iframe layers, only new ones. This patch adds logic to do that.

The third bug was that we have ad-hoc reflow calls throughout script/, and we didn't trigger any reflow from the code that dispatches the `load` event for the iframe so the test for the first two issues would always time out. The second commit adds another reflow call to do that, and also bites the bullet and adds a catch-all reflow (which does nothing if there's no dirty nodes in the document) at the return to the event loop.

Closes #8081.

Extension of #9285.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9421)
<!-- Reviewable:end -->
2016-01-28 04:55:04 +05:30
Josh Matthews
c79231f9c6 Ignore navigation requests from pages that are not active. 2016-01-27 18:17:03 -05:00
bors-servo
34954a9870 Auto merge of #9444 - mbrubeck:x5e-up, r=jdm
Upgrade to latest xml5ever

To pick up Ygg01/xml5ever#12

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9444)
<!-- Reviewable:end -->
2016-01-27 22:58:10 +05:30
Matt Brubeck
84915ed23b Upgrade to latest xml5ever 2016-01-27 09:26:41 -08:00
bors-servo
e9769da498 Auto merge of #9425 - connorimes:characterize-use-output-png, r=larsbergstrom
Output to png file since exit flag doesn't work

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9425)
<!-- Reviewable:end -->
2016-01-27 20:51:50 +05:30
bors-servo
03b763c2c5 Auto merge of #9440 - adamncasey:fix-multirust, r=jdm
Prepend PATH extras instead of append (Fix Issue #9437)

Should fix multirust issue https://github.com/servo/servo/issues/9437 which appeared after https://github.com/servo/servo/pull/9415 landed.

@jdm to confirm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9440)
<!-- Reviewable:end -->
2016-01-27 19:17:29 +05:30
bors-servo
4f3ed209bc Auto merge of #9434 - servo:h5eup, r=nox
Update html5ever and xml5ever for API changes.

@nox r?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9434)
<!-- Reviewable:end -->
2016-01-27 17:29:56 +05:30
Simon Sapin
c7b51e7aa1 Update html5ever and xml5ever for API changes. 2016-01-27 12:25:16 +01:00
bors-servo
8c0736211b Auto merge of #9378 - paulrouget:removeProperty, r=KiChjang
Invalidate node style after style property removed

Fix #9377

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9378)
<!-- Reviewable:end -->
2016-01-27 16:43:30 +05:30
Adam Casey
74524f03c4 Prepend PATH extras instead of append.
Fixes multirust issue #9437
2016-01-27 11:09:45 +00:00
Paul Rouget
6d7dc0b905 Invalidate node style after style property removed 2016-01-27 07:43:23 +01:00
bors-servo
2dd4e5d164 Auto merge of #9439 - glennw:update-gleam, r=KiChjang
Update gleam

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9439)
<!-- Reviewable:end -->
2016-01-27 11:36:45 +05:30
Glenn Watson
8dd9159bb4 Update gleam 2016-01-27 14:27:53 +10:00
Glenn Watson
de81d88324 Add comment to explain callback ordering 2016-01-27 09:25:20 +10:00
Josh Matthews
7eca462c5a Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a 2016-01-26 16:37:23 -05:00
Patrick Walton
e5a1af5b7a compositing: Fix a couple of bugs that prevented iframes from painting
after navigation.

The first bug was that iframes were not reflowed in their parent DOM
when the child page navigated. This is fixed by simply having the
constellation notify the appropriate script thread when navigation
occurs.

The second bug was that the compositor was unable to adjust the pipeline
for existing iframe layers, only new ones. This patch adds logic to do
that.

Closes #8081.
2016-01-26 16:37:23 -05:00
bors-servo
80c2911348 Auto merge of #9415 - adamncasey:mach-run-win32-fix, r=larsbergstrom
Fix ./mach run on Windows

This branch also includes the commit being reviewed in https://github.com/servo/servo/pull/9408 . Is it OK to just wait for that one to merge, or should I separate them?

This patch adds the BIN_SUFFIX to the servo executable name when doing ./mach run.

However just doing this caused subprocess to error due to some unicode symbols in PATH.

To fix this, I pulled a peice of code from mozilla-central which fixes this problem there. Source: https://dxr.mozilla.org/mozilla-central/source/python/mach/mach/mixin/process.py#108

Revisiting this now (originally developed this a few weeks ago), perhaps we should be using https://github.com/servo/servo/blob/master/python/mach/mach/mixin/process.py instead of subprocess to give us all of this crossplatform process execution support. I think that should be a nice to have though - this patch at least gets a necessary development command working on windows.

Tested on Windows and Ubuntu.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9415)
<!-- Reviewable:end -->
2016-01-27 00:51:49 +05:30
bors-servo
a75f2cecda Auto merge of #9419 - psdh:includeTypedef, r=nox
generate typedefs in CodegenRust.

fixes #9384

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9419)
<!-- Reviewable:end -->
2016-01-26 22:10:57 +05:30
Prabhjyot Singh Sodhi
d6df844ae5 generate typedefs in CodegenRust 2016-01-26 21:56:44 +05:30
bors-servo
a19b14313a Auto merge of #9430 - doomrobo:WebIDL-no-empty-const-modules, r=nox
Fix issue #9411 - Do not generate empty WebIDL 'Constant' modules

Fixes issue #9411
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9430)
<!-- Reviewable:end -->
2016-01-26 15:40:16 +05:30
Michael Rosenberg
1f45eaf8a1 For WebIDL interfaces without constant members, do not generate a 'Constant' module 2016-01-26 02:50:53 -05:00
bors-servo
b66a001451 Auto merge of #9429 - pcwalton:iframe-scroll-stacking, r=mbrubeck
Dispatch scroll events to layers above others.

Closes #9416.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9429)
<!-- Reviewable:end -->
2016-01-26 07:28:23 +05:30
bors-servo
71d49fc73d Auto merge of #9428 - pcwalton:incorporeal-shadows, r=mbrubeck
Make hit tests against box shadows always fail.

Closes #9268.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9428)
<!-- Reviewable:end -->
2016-01-26 06:42:57 +05:30
Patrick Walton
e4db0715e1 Dispatch scroll events to layers above others.
Closes #9416.
2016-01-25 16:42:37 -08:00
Patrick Walton
32a68a43ec Make hit tests against box shadows always fail.
Closes #9268.
2016-01-25 16:30:04 -08:00
bors-servo
ea147cbd82 Auto merge of #9426 - timvandermeij:unused-import, r=jdm
Remove unused import from tests/unit/net/data_loader.rs

I noticed the following output at https://travis-ci.org/servo/servo/jobs/104733377#L1146:

<pre>
/home/travis/build/servo/servo/tests/unit/net/data_loader.rs:23:9: 23:33 warning: unused import, #[warn(unused_imports)] on by default
/home/travis/build/servo/servo/tests/unit/net/data_loader.rs:23     use std::sync::mpsc::channel;`
</pre>

Manual inspection also tells me that this import is not used. It seems to have become obsolete by 2aa5174246 (diff-46fd738c30b50dc2950348f1563f99b9R7).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9426)
<!-- Reviewable:end -->
2016-01-26 05:56:47 +05:30
bors-servo
d34641dc3f Auto merge of #9424 - connorimes:energy-monitor-0.1.1, r=jdm
Update energy-monitor to 0.1.1 for change to dual license

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9424)
<!-- Reviewable:end -->
2016-01-26 04:19:58 +05:30
bors-servo
09992318d0 Auto merge of #9423 - larsbergstrom:windows_instructions, r=KiChjang
Windows instructions

r? anybody

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9423)
<!-- Reviewable:end -->
2016-01-26 02:59:52 +05:30
Connor Imes
5177e9e1fa Output to png file since exit flag doesn't work 2016-01-25 15:28:49 -06:00
Tim van der Meij
925732e759 Remove unused import from tests/unit/net/data_loader.rs 2016-01-25 22:27:03 +01:00
Connor Imes
3a375090a8 Update energy-monitor to 0.1.1 for change to dual license 2016-01-25 15:24:18 -06:00
Lars Bergstrom
e92d130f32 Windows instructions 2016-01-25 14:34:50 -06:00
bors-servo
d57ab5f0c3 Auto merge of #9422 - timvandermeij:organization-cleanup, r=larsbergstrom
Update ORGANIZATION.md to remove the legacy reftest harness item

The mentioned directory and file do not exist anymore. The linked issue, #5618, has been closed after PR #9293, so this item should be removed from the overview.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9422)
<!-- Reviewable:end -->
2016-01-26 01:58:18 +05:30
Tim van der Meij
8fee75ef67 Update ORGANIZATION.md to remove the legacy reftest harness item 2016-01-25 21:21:27 +01:00
bors-servo
4755cc5c62 Auto merge of #9405 - pcwalton:absolute-positioning-overflow, r=glennw
layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes #9306.
Closes #9309.
Is a partial fix for #9308.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9405)
<!-- Reviewable:end -->
2016-01-26 00:20:26 +05:30
Patrick Walton
9c7b9fa32d layout: Remove some bogus code that tried to handle
absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes #9306.
Closes #9309.
Is a partial fix for #9308.
2016-01-25 10:52:07 -08:00
bors-servo
842ec7c415 Auto merge of #9418 - paulrouget:iframeCrash, r=jdm
Check if root page exist before handling DOM events

Fix #9417

For the test, I'm not sure how to simulate a mouse event or a key event in a way that it would be forwarded to the iframe.

Any idea?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9418)
<!-- Reviewable:end -->
2016-01-25 21:06:22 +05:30
Paul Rouget
a2c931e4df Check if root page exist before handling DOM events 2016-01-25 16:31:59 +01:00
bors-servo
e74021baaa Auto merge of #9400 - jmr0:websocket, r=nox
Fixing websocket subprotocol header validation

This takes care of https://github.com/servo/servo/issues/9034

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9400)
<!-- Reviewable:end -->
2016-01-25 17:01:39 +05:30
jmr0
3846cf52f2 fix websocket header validation, ensure it meets token requirements, add
testing
2016-01-24 18:31:21 -05:00
Adam Casey
bd0f7d107b Fix ./mach run on Windows
Fix unicode PATH the same way as mozilla-central does it for windows.
Also append extra PATHs instead of prepending, for some reason that broke ./mach run
2016-01-24 22:29:47 +00:00
bors-servo
e93a460db4 Auto merge of #9413 - nxnfufunezn:issue-9412, r=nox
Move ConstantSpec, NonNullJSNative and define_constants from utils to interface

Fixes #9412
r? @nox

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9413)
<!-- Reviewable:end -->
2016-01-24 20:48:57 +05:30
nxnfufunezn
e54929b4d7 Move ConstantSpec, NonNullJSNative and define_constants from utils to interface 2016-01-24 20:37:30 +05:30