Commit graph

12161 commits

Author SHA1 Message Date
Ms2ger
ecd3f4f80e Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm. 2015-08-09 17:54:56 +02:00
Harrison G
e0f007a940 Closes #6724 (Allows object evaluation in devtools)
The purpose of this is to fix how objects were previously evaluated in
the developer tools.

- Before this, evaluating an object such as the `window` would `panic!`
- After this, evaluating an object such as the `window` outputs `[object
  Window]`

A few things to note:

- This commit contains `unsafe` code.
- This does not contain a test because the developer tools cannot be properly tested until #5971 lands.
2015-08-09 11:45:16 -04:00
bors-servo
6a8bc85284 Auto merge of #7092 - dzbarsky:putimagedata, r=jdm
Clean up and fix PutImageData



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092)
<!-- Reviewable:end -->
2015-08-09 07:00:56 -06:00
bors-servo
dbce4c5bd8 Auto merge of #6975 - dzbarsky:get-tiny, r=jdm
Fix getImageData with sizes < 1 pixel



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6975)
<!-- Reviewable:end -->
2015-08-09 06:32:30 -06:00
bors-servo
abf73995f9 Auto merge of #7105 - connorimes:cef-7088, r=mbrubeck
Some imports are used in linux only. Fixes #7088.

Imports are used in Linux.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7105)
<!-- Reviewable:end -->
2015-08-09 05:50:01 -06:00
bors-servo
f41834e321 Auto merge of #7063 - dzbarsky:caption, r=Ms2ger
Implement createCaption and deleteCaption on HTMLTableElement



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7063)
<!-- Reviewable:end -->
2015-08-09 04:45:28 -06:00
bors-servo
28abc55d9b Auto merge of #7107 - AdrianArroyoCalle:master, r=Ms2ger
Removed unused object_to_string method

Closes #7100

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7107)
<!-- Reviewable:end -->
2015-08-09 04:16:55 -06:00
Adrián Arroyo Calle
68f6fdd8bc Removed unused object_to_string method 2015-08-09 11:26:15 +02:00
Ms2ger
47d6d958f5 Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests.
This reverts commit c315404db8, reversing
changes made to b00583bd4e.
2015-08-09 11:20:40 +02:00
Connor Imes
926cb903ae Some imports are used in linux only. Fixes #7088. 2015-08-08 23:03:13 -05:00
bors-servo
c315404db8 Auto merge of #7103 - frewsxcv:python-venv, r=metajack
Use one Python virtual environment for all mach commands

*See individual commits for more information*

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7103)
<!-- Reviewable:end -->
2015-08-08 19:42:14 -06:00
bors-servo
b00583bd4e Auto merge of #7102 - pcwalton:li-absolute-containing-block, r=glennw
layout: Allow list items to be absolute containing blocks.

Fixes overflowing highlight in the side menu on GitHub.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7102)
<!-- Reviewable:end -->
2015-08-08 17:16:14 -06:00
Corey Farwell
b327e9b595 Remove no longer needed Python dependencies
See the parent commit for more information why these were removed

tl;dr: these dependencies should now get installed by pip in a
virtualenv
2015-08-08 18:48:10 -04:00
Corey Farwell
33f78314d9 Use one Python virtual environment for all mach commands
Prior to this commit:

* Our Python dependency story was a bit of a mess. We had complete
 Python packages (wheels and directories) living in-tree, despite
 not having any changes from upstream. This is particularly bad because
 `setup.py` never gets run on these packages which could (sometimes
 silently) unintended breakage.
* Python virtual environments (virtualenv) were only utilized for
 testing web-platform tests

After this commit:

* A single virtualenv (`python/_virtualenv`) is activated upon *every*
 call to mach
* A requirements file (`python/requirements.txt`) is added to describe
 the dependencies needed by Python modules in `python/`. The child
 commit immediately following this will remove all the dependencies
 no longer needed in-tree (for the sake of keeping this commit
 readable).

Relevant to https://github.com/servo/servo/issues/861

Fixes https://github.com/servo/servo/issues/6999
2015-08-08 18:48:02 -04:00
Corey Farwell
b91320cb05 Remove unused variable 2015-08-08 18:47:31 -04:00
Corey Farwell
2d841e1d91 Remove unused imports 2015-08-08 18:47:28 -04:00
Anthony Ramine
4e8922a53a Optimise Node.childNodes
We use the virtual method children_changed() to propagate changes in the children
list to the NodeList tied to Node.childNodes.
2015-08-09 00:10:21 +02:00
Patrick Walton
657e638ad4 layout: Minor whitespace cleanup. 2015-08-08 13:32:25 -07:00
Patrick Walton
7ca1137d25 layout: Allow list items to be absolute containing blocks.
Fixes overflowing highlight in the side menu on GitHub.
2015-08-08 13:32:24 -07:00
David Zbarsky
2f47bdff4b Fix getImageData with sizes < 1 pixel 2015-08-08 15:43:22 -04:00
David Zbarsky
05c78fbd48 Inline write_pixels 2015-08-08 15:35:16 -04:00
David Zbarsky
51938d579f Switch PutImageData to using CopySurface 2015-08-08 15:35:08 -04:00
David Zbarsky
e24a867ab6 Implement createCaption and deleteCaption on HTMLTableElement
Update web-platform-tests expected data
2015-08-08 15:24:05 -04:00
bors-servo
d4d4d6dc01 Auto merge of #7099 - pcwalton:bincode, r=jdm
servo: Update `ipc-channel` to pick up `bincode` support.

Large improvement in page load times, especially in debug builds.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7099)
<!-- Reviewable:end -->
2015-08-08 10:55:00 -06:00
Patrick Walton
6b32e5d7a7 servo: Update ipc-channel to pick up bincode support.
Large improvement in page load times, especially in debug builds.
2015-08-08 09:43:53 -07:00
bors-servo
530d4547c9 Auto merge of #7046 - Ms2ger:base-url, r=dzbarsky
Implement a base_url getter and use it for style attributes.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7046)
<!-- Reviewable:end -->
2015-08-08 06:53:32 -06:00
Ms2ger
6951119f5e Cache the first base element with an href attribute on the Document. 2015-08-08 14:10:35 +02:00
bors-servo
a0af7a1581 Auto merge of #7075 - Ms2ger:load_url, r=dzbarsky
Improve code around Window::load_url.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7075)
<!-- Reviewable:end -->
2015-08-08 06:09:13 -06:00
Ms2ger
bd31b51a87 Use the base URL to parse style attributes. 2015-08-08 11:26:34 +02:00
Ms2ger
7f2b21c06e Implement base_url and fallback_base_url methods. 2015-08-08 11:26:33 +02:00
Ms2ger
92e64e607c Implement VirtualMethods for HTMLBaseElement. 2015-08-08 11:26:31 +02:00
bors-servo
d8b4611a79 Auto merge of #7066 - Ms2ger:ws-event, r=metajack
Dispatch message events for WebSocket.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7066)
<!-- Reviewable:end -->
2015-08-08 03:00:50 -06:00
David Zbarsky
9a88348978 Clean up dirty rect computation 2015-08-08 05:00:37 -04:00
David Zbarsky
7bcb911cea Inline dirty rect computation 2015-08-08 04:55:23 -04:00
David Zbarsky
48c24f8492 Pass a Rect instead of an Option<Rect> to PutImageData 2015-08-08 04:50:55 -04:00
Ms2ger
352229b6fa Implement WebSocket#onmessage. 2015-08-08 10:29:03 +02:00
bors-servo
23b81326cc Auto merge of #7091 - mt2d2:unused_imports_devtools, r=SimonSapin
Remove unneeded import.

This fixes #7087.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7091)
<!-- Reviewable:end -->
2015-08-08 02:18:34 -06:00
Michael Tremel
aafff85208 Remove unneeded import. 2015-08-08 00:02:12 -07:00
bors-servo
d07cde5efc Auto merge of #7056 - pcwalton:whitespace-nowrap-overflows, r=mbrubeck
layout: Introduce infrastructure for tracking, backing up, and splitting at the last known good split point, and use it for `white-space: nowrap`.

Fixes overflowing tables on Wikipedia.

This infrastructure should form the basis of our fix for inline layout
of fragments that don't themselves constitute valid split points. That
will require some more work, however.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7056)
<!-- Reviewable:end -->
2015-08-08 01:01:54 -06:00
Patrick Walton
11fdb503df layout: Introduce infrastructure for tracking, backing up, and splitting
at the last known good split point, and use it for `white-space:
nowrap`.

Fixes overflowing tables on Wikipedia.

This infrastructure should form the basis of our fix for inline layout
of fragments that don't themselves constitute valid split points. That
will require some more work, however.
2015-08-08 00:01:31 -07:00
bors-servo
c528039a53 Auto merge of #7051 - larsbergstrom:android_updates, r=mbrubeck
Update submodules and don't call setrlimit on Android

r? @mbrubeck 

Fixes #6432.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7051)
<!-- Reviewable:end -->
2015-08-07 19:54:27 -06:00
bors-servo
af4e0a246a Auto merge of #7082 - servo:linux-fail, r=metajack
Mark some tests as failing on Linux, not just Ubuntu 14.04.

They also fail for me on Archlinux.

(`absolute-replaced-height-007.htm` is disabled anyway, but let’s change it as well for consistency.)

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7082)
<!-- Reviewable:end -->
2015-08-07 17:51:44 -06:00
bors-servo
d36a10023a Auto merge of #7073 - HarryLovesCode:master, r=SimonSapin
Fix requestAnimationFrame timestamps in queue

This resolves #7044 which involved callbacks in a queue not receiving the same timestamp despite the specification saying they should. An extra test was added to verify the correct behavior.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7073)
<!-- Reviewable:end -->
2015-08-07 17:14:48 -06:00
Harrison G
e40b141409 Fix requestAnimationFrame timestamps in queue
This resolves #7044 which involved callbacks
in a queue not receiving the same timestamp despite
the specification saying they should. An extra test
was added to verify the correct behavior.
2015-08-07 19:02:52 -04:00
bors-servo
c202d7b2f6 Auto merge of #7076 - frewsxcv:tidy-rm-invalid-file, r=SimonSapin
Remove invalid file path in ignored_files for tidying



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7076)
<!-- Reviewable:end -->
2015-08-07 16:32:04 -06:00
bors-servo
0a0fd30eb3 Auto merge of #7033 - frewsxcv:fix-english, r=jdm
Improve clarity of comment in ref test list



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7033)
<!-- Reviewable:end -->
2015-08-07 15:35:03 -06:00
bors-servo
a5c7508fab Auto merge of #7009 - connorimes:remove-confusing-typedefs, r=Ms2ger
Remove typedefs DevtoolsControlChan and DevtoolsControlPort



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7009)
<!-- Reviewable:end -->
2015-08-07 14:41:37 -06:00
Lars Bergstrom
38286246df Update submodules and don't call setrlimit on Android 2015-08-07 15:08:07 -05:00
bors-servo
08987e3eda Auto merge of #7013 - servo:user-stylesheets, r=mbrubeck
Make the Ahem font available to test-css and test-wpt tests.

Add support for user stylesheets, and provide one to tests with an `@font-face` rule for it.

Fix #6195.

Many previously-failing tests now pass, and a few previously-passing now fail.

Among the latter, `font-family-013.htm` and `fonts-013.htm` are testing that the Ahem font is not used for characters it doesn’t have a glyph for. They were passing because Ahem was not available at all, and now fail because we don’t implement font fallback correctly.

The others also use Ahem, but I don’t understand yet what’s going on exactly.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7013)
<!-- Reviewable:end -->
2015-08-07 14:05:19 -06:00
Simon Sapin
47cd74fe69 Remove another duplicate copy of Ahem. 2015-08-07 21:38:58 +02:00