Commit graph

12731 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
e2b7a01055 webgl: texImage2D with a canvas argument 2015-09-25 16:20:31 +02:00
bors-servo
a58e731abd Auto merge of #7738 - Ms2ger:update-css, r=Ms2ger
Update CSS tests to revision 939546644b4d333218fd9c2c0f68c60752ff1e95



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7738)
<!-- Reviewable:end -->
2015-09-25 04:55:03 -06:00
Ms2ger
0ad6e78b23 Update CSS tests to revision 939546644b4d333218fd9c2c0f68c60752ff1e95 2015-09-25 12:54:36 +02:00
bors-servo
b26fac3f78 Auto merge of #7685 - bjwbell:add-twitter-fail-whale-attribution, r=pcwalton
Replace twitter fail whale with redirect to archive.org version

Sorry @pcwalton should have gotten the attribution approved first (https://twitter.com/subcide/status/645149674546966528)

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7685)
<!-- Reviewable:end -->
2015-09-24 20:40:49 -06:00
bors-servo
d7b8751709 Auto merge of #7736 - pcwalton:less-ambitious-optimize-set-property, r=Ms2ger
Less ambitious optimize set property

Splitting the parts that have r+ out of #6823.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7736)
<!-- Reviewable:end -->
2015-09-24 19:57:40 -06:00
Patrick Walton
075fd6818c script: Wrap a long line. 2015-09-24 18:54:54 -07:00
Patrick Walton
5dce5f0c97 script: Stop copying the document URL. 2015-09-24 18:54:53 -07:00
bors-servo
4d1be2f56c Auto merge of #7703 - bjwbell:bugfix-0px-and-non-0px-border-widths, r=pcwalton
gfx: Fix border-radius panic when a corner has 0px and >0px borders

When one border is 0px and the other is >0px then the border corner
drawing code panics when computing the values to use in drawing the
border corner arcs.

This fixes that bug and makes the `draw_corner` function more robust
by explicitly passing an enum, `BorderCorner`, naming which corner is
being drawn e.g. `BorderCorner::TL`.

Add a ref test,
`border_radius_zero_sizes_a.html/border_radius_zero_sizes_ref.html`.

Fixes https://github.com/servo/servo/issues/7700.

r? @pcwalton or @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7703)
<!-- Reviewable:end -->
2015-09-24 18:18:07 -06:00
bors-servo
d811f2d1ba Auto merge of #7729 - Ms2ger:reftest-gates, r=jdm
Remove the now-stable append and result_expect feature gates from reftest.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7729)
<!-- Reviewable:end -->
2015-09-24 12:33:46 -06:00
bors-servo
30ffd09eb3 Auto merge of #7675 - jgraham:freeze_crash, r=metajack
Prevent crash trying to freeze script task with no page.

This fixes a crash resulting from a race between loading an initial
document and navigating to a subsequent document. If the navigation
happens before the initial document has had a chance to create its
root page, we crash trying to unwrap a None. Note that the are likely
further similar timing issues with more complex sequences of navigation
and history manipulation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7675)
<!-- Reviewable:end -->
2015-09-24 11:05:28 -06:00
Ms2ger
67f12639ab Remove the now-stable append and result_expect feature gates from reftest. 2015-09-24 18:42:02 +02:00
bors-servo
2d253cbf83 Auto merge of #7728 - Ms2ger:box-raw, r=mbrubeck
Remove the now-stable box_raw feature gate from cef.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7728)
<!-- Reviewable:end -->
2015-09-24 10:37:40 -06:00
Ms2ger
561368fdd5 Remove the now-stable box_raw feature gate from cef. 2015-09-24 18:36:10 +02:00
James Graham
f8cd0d9b3b Prevent crash trying to freeze script task with no page.
This fixes a crash resulting from a race between loading an initial
document and navigating to a subsequent document. If the navigation
happens before the initial document has had a chance to create its
root page, we crash trying to unwrap a None. Note that the are likely
further similar timing issues with more complex sequences of navigation
and history manipulation.
2015-09-24 13:43:05 +01:00
bors-servo
2623f58a4b Auto merge of #7719 - Manishearth:ghfix, r=Ms2ger
Various fixes to make github less error-prone

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7719)
<!-- Reviewable:end -->
2015-09-24 03:55:29 -06:00
Manish Goregaokar
982e55ac1c Add better stringifier for DOMException 2015-09-24 11:58:28 +05:30
Manish Goregaokar
b677f0f4ae Add form getter for input/button elements; update test expectations 2015-09-24 11:58:24 +05:30
Manish Goregaokar
ed30923156 Add test for preserveWrapperCallback 2015-09-24 11:58:05 +05:30
Manish Goregaokar
ca31b2d749 Add preserveWrapperCallback (fixes #7218) 2015-09-24 08:06:29 +05:30
bors-servo
b4b3cedc10 Auto merge of #7724 - glennw:expire-anims, r=pcwalton
Ensure that animations expire correctly and stop compositing occurring after they finish.

There were two problems here:

(1) The animation state update function was only called when nodes were dirty or there were new animations.
(2) When all animations for a node expired, the entry from the hash table was not removed.

The result was that once an animation began, the compositor would be running as fast as it can forever.

Fixes #7721.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7724)
<!-- Reviewable:end -->
2015-09-23 18:46:29 -06:00
Glenn Watson
f6cb6c3b86 Ensure that animations expire correctly and stop compositing occurring after they finish.
There were two problems here:
(1) The animation state update function was only called when nodes were dirty or there were new animations.
(2) When all animations for a node expired, the entry from the hash table was not removed.

The result was that once an animation began, the compositor would be running as fast as it can forever.

Fixes #7721.
2015-09-24 10:29:58 +10:00
bors-servo
09b970af4a Auto merge of #7710 - mrobinson:small-dl-refactor, r=pcwalton
A few small bits of refactoring to prepare for more advanced DisplayList layerization

This will be useful when PaintLayers that contain DisplayLists instead
of StackingContexts need to draw themselves. This is a simple
preparatory refactoring and doesn't change any behavior.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7710)
<!-- Reviewable:end -->
2015-09-23 17:22:31 -06:00
bors-servo
a7208869f2 Auto merge of #7698 - Wafflespeanut:sorting, r=frewsxcv
sorted the declarations in various files...

This is a direct extract from my abandoned PR for a lint (#7546), along with some rather clumsy modifications (only on `components/script/dom/mod.rs` and `components/style/lib.rs`), because I had to sort some of the files again to make peace with tidy, which hasn't been educated about sorting yet!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7698)
<!-- Reviewable:end -->
2015-09-23 15:02:56 -06:00
Ravi Shankar
889eec364b sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
bors-servo
705ad72aee Auto merge of #7717 - servo:depup, r=metajack
Update dependencies.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7717)
<!-- Reviewable:end -->
2015-09-23 10:57:55 -06:00
Ms2ger
6fc66dd905 Update dependencies. 2015-09-23 15:41:54 +02:00
bors-servo
83435d7765 Auto merge of #7716 - servo:host-triple-assign, r=Manishearth
Fix a comparison that should be an assignment in host_triple().



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7716)
<!-- Reviewable:end -->
2015-09-23 07:39:50 -06:00
bors-servo
f7f16870be Auto merge of #7697 - servo:rustup_20150921, r=Ms2ger
Rust upgrade to rustc 1.5.0-dev (6217b002b 2015-09-21)

Snapshot doesn't exist yet. Rust master+ should work.

Also https://github.com/serde-rs/aster/pull/33 hasn't merged yet.

r? @Ms2ger @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7697)
<!-- Reviewable:end -->
2015-09-23 06:45:18 -06:00
Manish Goregaokar
3c969b346a Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev. 2015-09-23 14:44:59 +02:00
bors-servo
8f1469eb08 Auto merge of #7692 - ddrmanxbxfr:TidyMaxLineOver120, r=nox
Raise max length error over 120 chars not at 120 chars. python/tidy.py

This is a follow up of issue : Tidy has an off-by-one error #7686 

It allows to raise the max length error when line is over than 120 not at 120 specifically.

Thanks for looking into it.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7692)
<!-- Reviewable:end -->
2015-09-23 04:17:16 -06:00
Ms2ger
65e50be657 Fix a comparison that should be an assignment in host_triple(). 2015-09-23 09:40:08 +02:00
bors-servo
eca448363d Auto merge of #7713 - larsbergstrom:update_linker_locks, r=glennw
Update Cargo.lock files with linker updates for cleaner static linking

r? @metajack @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7713)
<!-- Reviewable:end -->
2015-09-22 19:37:22 -06:00
Lars Bergstrom
2a362f4070 Update Cargo.lock files with linker updates for cleaner static linking 2015-09-22 20:31:43 -05:00
bors-servo
b66dd62177 Auto merge of #7712 - frewsxcv:no-mem-transmute, r=saneyuki
Prefer element casting over mem::transmute

None
2015-09-22 16:48:22 -06:00
Corey Farwell
fe7647a43e Prefer element casting over mem::transmute 2015-09-22 18:38:31 -04:00
Martin Robinson
31a5eea823 Remove an unused function 2015-09-22 11:29:53 -07:00
Martin Robinson
71b83d6e99 Pass PaintTile to painting threads
This will be useful because in the future, PaintTiles might hold simple
DisplayLists instead of StackingContexts.
2015-09-22 11:29:15 -07:00
Bryan Bell
3e25284ff3 Replace twitter fail whale with redirect to archive.org version
Also add link to archive.org page of twitter fail whale
2015-09-22 11:26:00 -07:00
bors-servo
c80118ca74 Auto merge of #7709 - Ms2ger:update-wpt, r=Ms2ger
Update web-platform-tests to revision 0159b3ec9ba5355a3340621226e02ae026effd7f



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7709)
<!-- Reviewable:end -->
2015-09-22 11:59:09 -06:00
Ms2ger
43a50e298a Update web-platform-tests to revision 0159b3ec9ba5355a3340621226e02ae026effd7f 2015-09-22 19:58:47 +02:00
Martin Robinson
117c278936 Move DisplayList drawing logic to struct implementation
This will be useful when PaintLayers that contain DisplayLists instead
of StackingContexts need to draw themselves. This is a simple
preparatory refactoring and doesn't change any behavior.
2015-09-22 09:33:07 -07:00
Bryan Bell
17c20f06fc Unabbreviate BorderCorner enum values 2015-09-22 08:06:21 -07:00
bors-servo
d588ce8d85 Auto merge of #7707 - mskrzypkows:compositing_net_plugins, r=jdm
Add plugins for compositing and net crates #7699

Changed to_string calls to to_owned calls
where was a need.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7707)
<!-- Reviewable:end -->
2015-09-22 07:58:55 -06:00
Maciej Skrzypkowski
88815d21ba Add plugins for compositing and net crates #7699
Changed to_string calls to to_owned calls
where was a need.
2015-09-22 13:51:21 +02:00
Bryan Bell
15af32cc27 Unify two branches of match statement in intersec_ellipse_line 2015-09-21 21:15:23 -07:00
Mathieu Rheaume
705d8f7a1c Raise max length error over 120 chars not at 120 chars. python/tidy.py 2015-09-21 22:25:32 -04:00
Bryan Bell
345a069201 Code review nits 2015-09-21 17:59:07 -07:00
Bryan Bell
071acf476b gfx: Fix border-radius panic when a corner has 0px and >0px borders
When one border is 0px and the other is >0px then the border corner
drawing code panics when computing the values to use in drawing the
border corner arcs.

This fixes that bug and makes the `draw_corner` function more robust
by explicitly passing an enum, `BorderCorner`, naming which corner is
being drawn e.g. `BorderCorner::TL`.

Add a ref test,
`border_radius_zero_sizes_a.html/border_radius_zero_sizes_ref.html`.

Fixes https://github.com/servo/servo/issues/7700.
2015-09-21 17:26:47 -07:00
bors-servo
44de9173cc Auto merge of #7678 - AnthonyBroadCrawford:improved-error-messaging-mach-bootstrap, r=frewsxcv
#7630 Adding better error messaging in mach bootstrap for missing virtualenv/pip dependencies 

This PR is in reference to #7630 

I've added a simple try catch around our use of subprocess.check_all when trying to invoke and use python's 

- virtualenv 
- pip

Upon failure, I use sys.exit with an error message for the user.  Exit seemed appropriate as anything beneath those dependencies will fail to execute and result in a non friendly error message

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7678)
<!-- Reviewable:end -->
2015-09-21 18:13:35 -06:00
bors-servo
434e1fa074 Auto merge of #7702 - frewsxcv:no-dead-code, r=nox
Remove unnecessary `allow(dead_code)` function attributes



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7702)
<!-- Reviewable:end -->
2015-09-21 17:31:04 -06:00