Commit graph

9787 commits

Author SHA1 Message Date
Dhananjay Nakrani
73832175f4 Add Desktop Notifications for Long builds. Supported for Linux & Windows platforms.
Incorporate suggestions from Code review. Change function name to lower case.
2015-04-15 12:29:02 -07:00
bors-servo
045831748e Auto merge of #5701 - mmatyas:canvas_linecapjoin_url, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5701)
<!-- Reviewable:end -->
2015-04-15 10:44:42 -05:00
Mátyás Mustoha
350b060189 Add specification links to canvas line cap and line join 2015-04-15 17:40:23 +02:00
bors-servo
cd16d1c335 Auto merge of #5699 - JIoJIaJIu:timeline, r=jdm
[Task](https://github.com/servo/servo/issues/5665)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5699)
<!-- Reviewable:end -->
2015-04-15 09:46:46 -05:00
Guro Bokum
491851610e Send high resolution millisecond timestamps in timeline markers #5665 2015-04-15 19:46:00 +07:00
bors-servo
bdcf606f48 Auto merge of #5691 - pcwalton:hypothetical-box-reform, r=glennw
Before this change, Servo used one code path that computed the position
of flows with `position: static` or `position: relative` and another
separate code path that computed the position of flows with `position:
absolute` or `position: fixed`. The latter code attempted to duplicate
the former code to determine the static position of hypothetical boxes,
but this was both fragile and incorrect in the case of hypothetical
boxes nested inside floats. In fact, it's impossible to determine the
static position of an absolute flow relative to its containing block at
inline-size assignment time, because that static position could depend
on a float that cannot be placed until block-size assignment!

This patch changes block layout to use the same code path for static
positioning of regular flows and static positioning of absolute flows
where applicable. This both simplifies the code and improves its
efficiency, since it allows the `hypothetical_position` field and
`static_block_offsets` data structure to be removed. Moreover, it
improves correctness in the above case (which the new reftest checks).
This allows the sidebar in Facebook Timeline to be positioned properly.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5691)
<!-- Reviewable:end -->
2015-04-14 18:14:11 -05:00
bors-servo
3dc25af9e1 Auto merge of #5693 - frewsxcv:spec-links, r=jdm
Extracted out of #5649

* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
  guaranteed to be stable

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5693)
<!-- Reviewable:end -->
2015-04-14 17:16:55 -05:00
Corey Farwell
cc4a64e1fe Add/update comments with links to spec
Extracted out of #5649

* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
  guaranteed to be stable
2015-04-14 18:03:13 -04:00
bors-servo
7f422e2076 Auto merge of #5544 - boghison:master, r=jdm
Fixes #5538

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5544)
<!-- Reviewable:end -->
2015-04-14 15:11:20 -05:00
Bogdan Cuza
3dd48d214b Fix content type unit test 2015-04-14 23:08:00 +03:00
Patrick Walton
82fcbf7870 layout: Minor stylistic cleanup. 2015-04-14 13:00:11 -07:00
Patrick Walton
acd08c67c6 layout: Use the same code path for computing static positions of regular
flows and static positions of hypothetical boxes.

Before this change, Servo used one code path that computed the position
of flows with `position: static` or `position: relative` and another
separate code path that computed the position of flows with `position:
absolute` or `position: fixed`. The latter code attempted to duplicate
the former code to determine the static position of hypothetical boxes,
but this was both fragile and incorrect in the case of hypothetical
boxes nested inside floats. In fact, it's impossible to determine the
static position of an absolute flow relative to its containing block at
inline-size assignment time, because that static position could depend
on a float that cannot be placed until block-size assignment!

This patch changes block layout to use the same code path for static
positioning of regular flows and static positioning of absolute flows
where applicable. This both simplifies the code and improves its
efficiency, since it allows the `hypothetical_position` field and
`static_block_offsets` data structure to be removed. Moreover, it
improves correctness in the above case (which the new reftest checks).
This allows the sidebar in Facebook Timeline to be positioned properly.
2015-04-14 13:00:10 -07:00
Bogdan Cuza
ce4b8a0af7 Reduce duplication 2015-04-14 22:03:22 +03:00
Bogdan Cuza
19ffab82f1 Make Metadata use ContentType 2015-04-14 22:03:21 +03:00
bors-servo
fe81ce942a Auto merge of #5635 - mmatyas:canvas_linecapjoin, r=jdm
This patch adds support for setting the line cap and join. However, it seems there's a problem on the azure-side, as the line cap setting doesn't work. Changing either the default values or using the new function has no effect. Line join works fine though.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5635)
<!-- Reviewable:end -->
2015-04-14 12:57:48 -05:00
bors-servo
e597fd0c00 Auto merge of #5689 - Ms2ger:warnings, r=larsbergstrom 2015-04-14 12:22:38 -05:00
Ms2ger
a29ae417cd Remove unused feature gate. 2015-04-14 19:10:58 +02:00
Mátyás Mustoha
ccfff159e7 Canvas: added lineCap and lineJoin support. 2015-04-14 18:26:41 +02:00
bors-servo
72a0fb6838 Auto merge of #5489 - larsbergstrom:brson_cleanup, r=metajack,ms2ger,jdm,manish
All of the commits by brson have been reviewed. Just the android fixups and Rustup one (which also cleans up some of the duplication due to a complete rewrite of code that had been moved in the original PR).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5489)
<!-- Reviewable:end -->
2015-04-14 10:56:01 -05:00
Brian Anderson
9d486d0ca7 Remove cfg(not(test))s from servo/main.rs
Reorganize servo directory code top-down and add comments
Remove cfg(not(test)) from servo/lib.rs
Remove redundant thread from constellation setup
2015-04-14 10:53:56 -05:00
bors-servo
43d476eb2b Auto merge of #5678 - mdamien:patch-1, r=jdm
The urllib version used a `FancyURLOpener` which use urllib. But urllib does not not handle proxies with SSL well.

For example, when adding the proxies to urllib.FancyURLOpener, I got this SSL error:

    IOError: [Errno socket error] [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

So I switched the function to urllib2.

A better solution would be to use `requests` but I prefer to stay with the "no-dependency" approach.

For example, this was my first solution with `requests`:

```python
def download(desc, src, dst):
    print("Downloading(R) %s..." % desc)
    with open(dst, 'wb') as handle:
        response = requests.get(src, stream=True)

        if not response.ok:
            print("something went wrong downloading %s, :(" % desc)
            sys.exit(1)

        size = int(response.headers['content-length'])
        block_size = 1024
        recved = 0
        for block in response.iter_content(1024):
            recved += len(block)
            pct = recved * 100.0 / size
            print("\rDownloading %s: %5.1f%%" % (desc, pct), end="")
            if not block:
                break
            handle.write(block)
    print()
```

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5678)
<!-- Reviewable:end -->
2015-04-14 10:23:15 -05:00
bors-servo
f7c3544d75 Auto merge of #5659 - aneeshusa:add-range-errors-use-for-textencoder-textdecoder, r=jdm
Fixes #5620, and adds a few extra test cases.

Currently waiting on a few upstream PRs in rust-encoding to land.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5659)
<!-- Reviewable:end -->
2015-04-14 09:44:21 -05:00
bors-servo
0941f46162 Auto merge of #5685 - Ms2ger:wpt-servo, r=jdm 2015-04-14 08:51:35 -05:00
Ms2ger
a471704107 Introduce a Servo-only tree under web-platform-tests. 2015-04-14 15:45:04 +02:00
Ms2ger
8edd4e5ec5 Add some missing colons to wpt's readme. 2015-04-14 15:45:00 +02:00
Aneesh Agrawal
97301400a5 Throw RangeErrors in TextEncoder/TextDecoder constructors.
Fixes #5620.
Fix the TODOs and FIXMEs to comply with the spec.
Add test case for passing invalid invalid labels.
Update test metadata; three test cases have been resolved upstream and
will be fixed whenever the rust-encoding dependency is sufficiently upgraded.
2015-04-14 09:41:57 -04:00
bors-servo
e2b43bd3a9 Auto merge of #5682 - Ms2ger:mention-5681, r=Manishearth 2015-04-14 06:09:13 -05:00
Ms2ger
9d26931910 Mention #5681 in a TODO comment. 2015-04-14 12:13:14 +02:00
bors-servo
2dfa28f186 Auto merge of #5674 - nox:get_unsound_ref_forever-misc, r=Ms2ger 2015-04-14 04:56:08 -05:00
Anthony Ramine
3ce368fa28 Remove unnecessary uses of get_unsound_ref_forever() 2015-04-14 11:55:35 +02:00
bors-servo
894b19526f Auto merge of #5680 - Ms2ger:urls, r=Manishearth
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 03:52:08 -05:00
Ms2ger
49393a8762 Update some URLs.
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 10:44:51 +02:00
Damien
1ee479707b Handle proxies in boostrap script
The urllib version used a `FancyURLOpener` which use urllib. But urllib does not not handle proxies with SSL well.
A better solution would be to use `requests` but I prefer to stay with the "no-dependency" approach.
2015-04-14 10:13:15 +02:00
bors-servo
4997d3a112 Auto merge of #5677 - frewsxcv:https, r=Ms2ger
Extracted this out of #5649

This commit was created with the following commands:

```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-14 02:57:41 -05:00
bors-servo
b7f59a3646 Auto merge of #5642 - aneeshusa:arc-box-image-to-arc-image, r=Ms2ger
Image used to be a trait, but no longer is, so boxing it is no longer
necessary. Fixes #5639.
2015-04-14 01:57:07 -05:00
bors-servo
4fac8b6810 Auto merge of #5593 - shinglyu:ismap, r=jdm
This implements issue 4873
2015-04-14 00:10:08 -05:00
Corey Farwell
5eaa922045 Update WHATWG links to use HTTPS
Extracted this out of #5649

This commit was created with the following commands:

```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Shing Lyu
7a65b95ae5 4873 - Support the image map processing for <img ismap/> inside an <a/> 2015-04-14 10:09:23 +08:00
bors-servo
55de52d76a Auto merge of #5675 - ChrisParis:treewalker-nodefilter, r=jdm 2015-04-13 18:27:46 -05:00
Chris Paris
61f4fce655 Use NodeFilterConstants from NodeFilterBinding 2015-04-13 13:05:11 -10:00
bors-servo
b9b4389628 Auto merge of #5672 - ChrisParis:nodefilter, r=jdm 2015-04-13 17:18:40 -05:00
bors-servo
92991f8070 Auto merge of #5673 - Adenilson:squashWarnings, r=SimonSapin 2015-04-13 16:47:09 -05:00
Adenilson Cavalcanti
a233cb5ef9 Using unwrap() as suggested in review. 2015-04-13 14:45:14 -07:00
Adenilson Cavalcanti
d2b7cbd4ef Squashing a few compiler warnings. 2015-04-13 14:25:42 -07:00
Aneesh Agrawal
395e8a5981 Make minor syntax simplification to address review. 2015-04-13 17:23:03 -04:00
bors-servo
f67749fc7d Auto merge of #5671 - zerokarmaleft:move_mime_classifier_tests, r=SimonSapin
Closes #5667.
2015-04-13 16:11:10 -05:00
Edward Cho
d0469dfaf3 move mime classifier unit tests into unit test crate 2015-04-13 15:40:30 -05:00
Chris Paris
98e2dc5df7 Uncomment NodeFilter constants 2015-04-13 10:13:06 -10:00
bors-servo
1f9c2f9b34 Auto merge of #3726 - ChrisParis:callback-constants, r=jdm
This addresses https://github.com/servo/servo/issues/3149. The immediate purpose is to support the constants in NodeFilter. The changes mostly follow the current Gecko Codegen.py. The main gist is that the generation of certain code artifacts is now gated by hasInterfaceObject() or hasInterfacePrototypeObject(), rather than by isCallback().
2015-04-13 14:34:39 -05:00
bors-servo
74c847a17f Auto merge of #5636 - JIoJIaJIu:timeline, r=jdm
Available markers only:

Reflow
DOMEvent
Also need to implement:

Style marker
Paint marker
Javascript marker
frames reply, depends on getting javascript stack
I decided to make pull request before implemented another markers for getting feedback.
mb it would be better to create separated tasks.

Notices:
Marker doesn't fill stack and stackEnd
MemoryActor sends fake data because there is no memory profiler per tab
FramerateActor sends empty Vec, need implement http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#5240
2015-04-13 12:44:49 -05:00