Commit graph

13293 commits

Author SHA1 Message Date
Glenn Watson
736730f2e7 Remove unused subpage senders map. 2015-10-12 11:13:30 +10:00
Corey Farwell
e3aabd0bc5 DRY out conditional logic in CORS header matching 2015-10-11 20:55:01 -04:00
Corey Farwell
81e034885b Cleanup code that was warned by rust-clippy 2015-10-11 20:47:45 -04:00
Connor Imes
d14888f039 Update dependencies with fixes for native ARM builds 2015-10-11 23:15:53 +00:00
bors-servo
292dbfe809 Auto merge of #7854 - frewsxcv:htmltablesectionelement-insertrow-deleterow, r=nox
Implement deleteRow and insertRow for <table> element

Continued from #6936

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7854)
<!-- Reviewable:end -->
2015-10-11 16:44:13 -06:00
bors-servo
9c1cb9f61e Auto merge of #7974 - frewsxcv:travis, r=jdm
Use Travis container-based infra for test-tidy

I wasn't aware one could specify options like `sudo` and `services` on a per build-environment basis. Since the container-based builds are faster than normal builds, we should utilize it for test-tidy

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7974)
<!-- Reviewable:end -->
2015-10-11 09:17:25 -06:00
Corey Farwell
1aed8503b0 Use consistent indentation in YAML file 2015-10-11 11:15:18 -04:00
Corey Farwell
cccf326d12 Use Travis container-based infra for test-tidy 2015-10-11 11:15:13 -04:00
Corey Farwell
3d383f21ae Implement deleteRow and insertRow for <table> element
Continued from #6936
2015-10-11 09:47:46 -04:00
bors-servo
7b904ef6fb Auto merge of #7971 - gkbrk:fix_7970, r=nox
Use typed header API instead of set_raw in set_default_accept_encoding

Fixes #7970

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7971)
<!-- Reviewable:end -->
2015-10-11 03:20:14 -06:00
Gökberk Yaltıraklı
5eeca1f037 Use typed header API instead of set_raw in set_default_accept_encoding 2015-10-11 11:00:03 +03:00
bors-servo
02d8894945 Auto merge of #7958 - frewsxcv:consolidate-magic-number, r=mbrubeck
Consolidate magic number representing max unsigned long



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7958)
<!-- Reviewable:end -->
2015-10-10 15:00:39 -06:00
bors-servo
babeed998d Auto merge of #7953 - frewsxcv:htmldivelement-align, r=mbrubeck
Implement 'align' attribute for <div> elements



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7953)
<!-- Reviewable:end -->
2015-10-10 14:11:33 -06:00
bors-servo
04266f237a Auto merge of #7949 - craftytrickster:map-clone-to-cloned, r=nox
Making map+clone more succinct with cloned

https://github.com/servo/servo/issues/7906

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7949)
<!-- Reviewable:end -->
2015-10-10 13:18:56 -06:00
bors-servo
0f8493a566 Auto merge of #7918 - nox:partialeq-font, r=mbrubeck
Derive PartialEq on the style Font structure

We check the hash first.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7918)
<!-- Reviewable:end -->
2015-10-10 12:26:07 -06:00
Corey Farwell
4dc8fd76ec Consolidate magic number representing max unsigned long 2015-10-10 13:46:11 -04:00
bors-servo
b34b82537a Auto merge of #7955 - frewsxcv:listing-pre, r=nox
Add 'listing' alias for <pre> elements



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7955)
<!-- Reviewable:end -->
2015-10-10 11:08:14 -06:00
bors-servo
4052a22a1c Auto merge of #7960 - frewsxcv:update-spec-links, r=jdm
Replace usage of old-style WHATWG spec links



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7960)
<!-- Reviewable:end -->
2015-10-10 10:17:52 -06:00
Corey Farwell
9b68d715de Explicitly place '/' before fragment for multipage spec links
This prevents us from 301 redirecting, which could cause the fragment to
get lost
2015-10-10 12:07:10 -04:00
Corey Farwell
85f2b6fc5b Replace usage of old-style WHATWG spec links 2015-10-10 11:55:09 -04:00
Matt Brubeck
a15acef4c8 Don't pass -pie when linking a dylib on gonk 2015-10-10 07:43:26 -07:00
Matt Brubeck
e2e142aae8 Replace libpng with image everywhere. 2015-10-10 07:43:11 -07:00
Simon Martin
28fdc02143 Issue #7905: Restore "headless" build on not Linux platforms. 2015-10-10 16:18:20 +02:00
David Raifaizen
de2060e6a1 Making map+clone more succinct with cloned 2015-10-10 09:31:21 -04:00
Corey Farwell
59e2911f28 Add 'listing' alias for <pre> elements 2015-10-10 08:58:38 -04:00
Corey Farwell
55c65d3192 Implement 'align' attribute for <div> elements 2015-10-10 08:15:44 -04:00
bors-servo
9cccd98254 Auto merge of #7948 - kunitsyn:master, r=Manishearth
Changed dom_class type to Option<&'static DOMClass> to fix #7942

I have a feeling that converting `Option<&T>` to `*const libc::c_void` could be less explicit.
Was there any way to do it shorter?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7948)
<!-- Reviewable:end -->
2015-10-09 23:22:59 -06:00
bors-servo
1192efed50 Auto merge of #7945 - pierrechevalier83:fix_issue_7914, r=jdm
Refactor away unnecessary use of regex

We don't need regex matching since ": &Vec<" doesn't
contain any special character.

New code reads better.

Fixes #7914.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7945)
<!-- Reviewable:end -->
2015-10-09 21:22:06 -06:00
bors-servo
28969f1f33 Auto merge of #7952 - aweinstock314:update-clipboard-20151009, r=mbrubeck
Update clipboard to a version with chdir("/") removed.

Relevant links:
http://logs.glob.uno/?c=mozilla%23servo&s=9+Oct+2015&e=10+Oct+2015#c279844
ef4cf77c9c

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7952)
<!-- Reviewable:end -->
2015-10-09 19:52:13 -06:00
Avi Weinstock
f24bebb84e Update clipboard to a version with chdir("/") removed.
Relevant links:
http://logs.glob.uno/?c=mozilla%23servo&s=9+Oct+2015&e=10+Oct+2015#c279844
ef4cf77c9c
2015-10-09 21:05:03 -04:00
bors-servo
ea7b990e2d Auto merge of #7944 - Ms2ger:test-ref, r=jdm
Use wptrunner for some old-style reftests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7944)
<!-- Reviewable:end -->
2015-10-09 17:51:11 -06:00
bors-servo
6d52bdf4ff Auto merge of #7891 - mrobinson:display-list-paint-layer, r=pcwalton
Properly size synthesized layers

Layers that are composed of several stacking contexts that need to be
rendered on top of other layered content need synthesized layers.
Previously, these layers were placed into a stacking context that was
the same size as their parent. This patch creates a new type of
PaintLayer which simply holds a display list. The layer is sized to the
bounds of the DisplayList and its children are positioned relative to
the parent stacking context.

This will also be useful in the future, when items outside of
StackingContexts are given their own layer for render order purposes.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7891)
<!-- Reviewable:end -->
2015-10-09 17:00:21 -06:00
bors-servo
48887acff1 Auto merge of #7939 - iawaknahc:issue-7924, r=Manishearth
Use typed headers API instead of set_raw

fix https://github.com/servo/servo/issues/7924

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7939)
<!-- Reviewable:end -->
2015-10-09 15:01:22 -06:00
bors-servo
8ef8c53d2a Auto merge of #7909 - paulrouget:subpixelPos, r=mbrubeck
Snap to screen pixels instead of px

Fixes #7904

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7909)
<!-- Reviewable:end -->
2015-10-09 14:10:44 -06:00
bors-servo
bc5444067f Auto merge of #7936 - alexcrichton:script-rebuild, r=jdm
Fix spurious rebuilds of the script crate

The script crate currently has a build script, and Cargo will consider all files
in the script crate as inputs to the build script as it otherwise doesn't know
[what the input files are][cargo-1162]. This means that if any file in the
source tree of the script crate changes (or is created) then Cargo will think it
needs to re-run the build script and rebuild the crate.

[cargo-1162]: https://github.com/rust-lang/cargo/issues/1162

The build script of the script crate is invoking python, and consequently Python
is generating some bytecode files in the source tree. On the second build of
Servo, Cargo will see these new files, think that something has changed, and
will re-run the build script of the script crate.

This change passes the `-B` flag to python to avoid generating these bytecode
files, which should avoid tampering with the source tree and appease Cargo by
ensuring that it doesn't get rebuilt.

---

As a helpful tip to if this comes up again, this was discovered by using the
changes in rust-lang/cargo@c447e9d plus the change in rust-lang/cargo#2044. Once
`RUST_LOG` was set to `cargo::ops::cargo_rustc::fingerprint=info`, the second
run of `./mach build` printed out:

```
precalculated components have changed:
  1444364448.000000000s (/build/servo/components/script/dom/bindings/codegen/parser/WebIDL.pyc) !=
  1444364235.000000000s (/build/servo/components/script/document_loader.rs)
```

Which should help easily diagnose these kinds of problems in the future!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7936)
<!-- Reviewable:end -->
2015-10-09 13:23:41 -06:00
Matt Brubeck
b649246fe2 Replace stb_image with PistonDevelopers/image
Fixes #3368
2015-10-09 12:23:33 -07:00
bors-servo
06e0447e82 Auto merge of #7835 - iawaknahc:webstorage-quota, r=jdm
Implement a quota of 5MB per origin for localstorage and sessionstorage

PR for https://github.com/servo/servo/issues/6739

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7835)
<!-- Reviewable:end -->
2015-10-09 12:36:47 -06:00
bors-servo
ec10b1708e Auto merge of #7938 - A-deLuna:remove-clone-from-respond_with_headers-fixes-#7922, r=Ms2ger
removed clone from respond_with_headers fixes #7922

fixes #7922 
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7938)
<!-- Reviewable:end -->
2015-10-09 11:40:33 -06:00
Andriy Kunitsin
7301609c18 Changed dom_class type to Option<&'static DOMClass> 2015-10-09 19:57:22 +03:00
bors-servo
12139f73ef Auto merge of #7925 - Ms2ger:iframe-pipeline-layout, r=glennw
Implement HTMLIFrameElement::pipeline_id on LayoutJS<HTMLIFrameElement>.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7925)
<!-- Reviewable:end -->
2015-10-09 09:49:08 -06:00
Pierre Chevalier
d2481c37d5 Refactor away unnecessary use of regex
We don't need regex matching since ": &Vec<" doesn't
contain any special character.

New code reads better.

Fixes #7914.
2015-10-09 16:43:26 +01:00
Ms2ger
0dc393820f Move background_position_percent.html to wpt reftests. 2015-10-09 17:33:51 +02:00
Ms2ger
7e23ff97c1 Move background_position_keyword.html to wpt reftests. 2015-10-09 17:26:53 +02:00
Ms2ger
ebd38a6ad8 Move background_position_a.html to wpt reftests. 2015-10-09 17:08:42 +02:00
Ms2ger
6ce531e78b Move background_origin_a.html to wpt reftests. 2015-10-09 17:02:50 +02:00
bors-servo
8c81d9ab28 Auto merge of #7885 - jimberlage:7858/null-message, r=Ms2ger
Creates empty string when passed null

This should fix #7858.  An empty `USVString` is now used when `data` is `None`.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7885)
<!-- Reviewable:end -->
2015-10-09 09:02:45 -06:00
Ms2ger
af1ba43010 Move background_none_a.html to wpt reftests. 2015-10-09 16:59:55 +02:00
Ms2ger
3e64751d2f Move background_image_position_a.html to wpt reftests. 2015-10-09 16:59:54 +02:00
Ms2ger
f112adf6ae Move background_image_a.html to wpt reftests. 2015-10-09 16:59:53 +02:00
Ms2ger
8233171a7c Move background_external_stylesheet.html to wpt reftests. 2015-10-09 16:59:52 +02:00