Commit graph

13483 commits

Author SHA1 Message Date
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
Pierre Chevalier
a6a685e954 Clarify some code in do_create_interface_objects
rval.get() is believed to be always null upon entering this function.
This assumption is verified by the added assertion.
It makes more sense to move the block of code that was moved inside
the if statement which is the only place where it can be initialized.

Fixes #7941.
2015-10-10 18:13:37 +01: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
Ms2ger
586846b4ca Move background_clip_a.html to wpt reftests. 2015-10-09 16:59:51 +02:00
Ms2ger
86fd10e016 Move attr_selector_case_sensitivity.html to wpt reftests. 2015-10-09 16:59:50 +02:00
bors-servo
7880a1b25f Auto merge of #7937 - Ms2ger:manifests, r=jgraham
Update manifests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7937)
<!-- Reviewable:end -->
2015-10-09 07:00:29 -06:00
bors-servo
1029feb55d Auto merge of #7841 - frewsxcv:htmlbodyelement-text, r=nox
Implement <body>'s "text" attribute



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7841)
<!-- Reviewable:end -->
2015-10-09 06:11:46 -06:00
bors-servo
96356a4b33 Auto merge of #7932 - pierrechevalier83:fix_issue_7929, r=jdm
Refactor away duplication of get_rooted functionality

Refactor .get().map(Root::from_rooted)
and .get().map(|foo| foo.root())
to .get_rooted() on MutNullableHeap objects.

First part done mechanically with the following comand:
sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs

Second part done manually after finding them with
git grep ".get().map("

Fixes #7929.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7932)
<!-- Reviewable:end -->
2015-10-09 05:23:25 -06:00
bors-servo
c3fc382dfc Auto merge of #7940 - Ms2ger:disable-webgl, r=Ms2ger
Temporarily disable webgl reftests.

They crash on the linux buildbots.
See <https://github.com/servo/servo/issues/7931>.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7940)
<!-- Reviewable:end -->
2015-10-09 04:23:23 -06:00
Ms2ger
bc6ba8b041 Temporarily disable webgl reftests.
They crash on the linux buildbots.
See <https://github.com/servo/servo/issues/7931>.
2015-10-09 12:21:36 +02:00
Louis Chan
aa6378a462 Use typed headers API instead of set_raw 2015-10-09 17:25:14 +08:00
Antonio de Luna
6c4a849e4e removed &mut and clone 2015-10-09 01:35:03 -07:00
Ms2ger
84e23373d8 Update manifests. 2015-10-09 10:34:57 +02:00