Commit graph

15311 commits

Author SHA1 Message Date
bors-servo
831979d6a7 Auto merge of #8650 - Wafflespeanut:about-404, r=Wafflespeanut
Redirect to an error page on 404!

fixes #7658

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8650)
<!-- Reviewable:end -->
2015-11-26 22:47:03 +05:30
Josh Matthews
c36cbf58e8 Remove remaining version-conflict exceptions in tidy.py. 2015-11-26 11:26:28 -05:00
Ms2ger
b7dab2947f Move stacking_context_position_a.html to wpt reftests. 2015-11-26 16:08:54 +01:00
Ms2ger
9d73b869db Consume self in PrivilegedPipelineContent methods.
This leads to a little bit of copy/paste, but the resulting code should be
quite a bit more efficient.
2015-11-26 10:23:11 +01:00
Ms2ger
8dadd1a420 Take PrivilegedPipelineContent::script_to_compositor_port out of its Option. 2015-11-26 10:17:18 +01:00
Ms2ger
6eff8d6c32 Remove unused PrivilegedPipelineContent::constellation_chan. 2015-11-26 09:51:55 +01:00
Ms2ger
fccd9465de Remove the css21 tests from test-ref.
These are already running and passing in test-css.
2015-11-26 09:37:46 +01:00
Ms2ger
300eb9e8dd Move stacking_context.html to wpt reftests. 2015-11-26 09:11:49 +01:00
Ms2ger
b0243d66a6 Move size_attributes_vertical_writing_mode.html to wpt reftests. 2015-11-26 09:08:11 +01:00
Ms2ger
e2c5143ec7 Move size_attributes.html to wpt reftests. 2015-11-26 09:01:18 +01:00
Ms2ger
3f99612e5d Move simple_inline_width_percentage.html to wpt reftests. 2015-11-26 09:01:17 +01:00
Ms2ger
9889fa2139 Move simple_inline_width_height.html to wpt reftests. 2015-11-26 09:01:16 +01:00
Ms2ger
86f2187e6a Move simple_inline_width.html to wpt reftests. 2015-11-26 09:01:15 +01:00
Ms2ger
1e868aab6f Move simple_inline_min.html to wpt reftests. 2015-11-26 09:01:14 +01:00
Ms2ger
bffde87f78 Move simple_inline_max.html to wpt reftests. 2015-11-26 09:01:13 +01:00
Ms2ger
dbc79eea96 Move simple_inline_height.html to wpt reftests. 2015-11-26 09:01:11 +01:00
Ravi Shankar
b17ca9bdc1 Redirect to an error page when file's not found 2015-11-26 11:20:42 +05:30
jmr0
df49cf2b13 adding tidy rule to warn against use of &String and refactoring instances of &String in codebase 2015-11-25 21:49:12 -05:00
GauriGNaik
996e9e06b2 Defined new trait ParseErrorReporter and added error_reporter member to ParserContext 2015-11-25 18:28:30 -05:00
bors-servo
5e7306bf19 Auto merge of #8598 - g-k:split-scriptmsg, r=KiChjang
Split paint task messages from ScriptMsg

Refs: https://github.com/servo/servo/issues/8592

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8598)
<!-- Reviewable:end -->
2015-11-26 03:02:47 +05:30
Greg Guthe
7668fd0503 Split paint task messages from ScriptMsg
Refs: https://github.com/servo/servo/issues/8592
2015-11-25 14:35:52 -05:00
bors-servo
8efc954531 Auto merge of #8671 - paulrouget:iframe-hit-test, r=pcwalton
Fix clip rect for iframes in hit testing code

Fixes #8080 r? @mrobinson

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671)
<!-- Reviewable:end -->
2015-11-26 00:39:36 +05:30
bors-servo
188fa9378c Auto merge of #8667 - asajeffrey:update-string-cache, r=SimonSapin
Update string cache

Updated string_cache to 0.2, and updated the dependencies that depend on string_cache.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.

r? @SimonSapin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8667)
<!-- Reviewable:end -->
2015-11-26 00:10:39 +05:30
Josh Matthews
a211c65f66 Fix #8502 by not printing the message which is known to be repeated millions of times. 2015-11-25 11:14:13 -05:00
Alan Jeffrey
3dec6edd10 Update string_cache to 0.2.
Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced atom!(foo) by atom!("foo").
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.
2015-11-25 10:13:21 -06:00
bors-servo
e7b1924948 Auto merge of #6826 - dzbarsky:deletecontents, r=jdm
Implement Range#deleteContents

Sadly calling ExtractContents and discarding the result doesn't do the right thing.
It may be worth having a CutContents method that takes an `Option<DocumentFragment>` and switch the behavior based on it, to share the code between DeleteContents and ExtractContents, like what Gecko does.  Maybe a followup.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6826)
<!-- Reviewable:end -->
2015-11-25 19:55:02 +05:30
bors-servo
6684804846 Auto merge of #8648 - Ms2ger:test-ref, r=frewsxcv
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/8648)
<!-- Reviewable:end -->
2015-11-25 15:30:12 +05:30
David Zbarsky
25b7c9523c Implement Range#deleteContents 2015-11-25 00:02:25 -08:00
Matt Brubeck
7b799497d1 Convert from client to page coords in script 2015-11-25 07:16:09 +01:00
Matt Brubeck
a61989e82b Fix clip rect for iframes in hit testing code
Fixes #8080
2015-11-25 05:28:47 +01:00
bors-servo
4f625d3ab6 Auto merge of #8670 - pcwalton:animation-expiration, r=glennw
Write animated values into the `ComputedValues` structures when animations complete or are interrupted.

This adds a new pair of reader-writer locks. I measured the performance
of style recalculation on Wikipedia and the overhead of the locks was
not measurable.

Closes #7816.

cc @paulrouget

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8670)
<!-- Reviewable:end -->
2015-11-25 08:00:14 +05:30
bors-servo
13a96fcaf7 Auto merge of #8660 - pcwalton:ipc-channel-errors, r=larsbergstrom
Update `ipc-channel` to pick up the improved error reporting.

Intended to help diagnose intermittent failures.

r? @jdm or @larsbergstrom (or whoever)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8660)
<!-- Reviewable:end -->
2015-11-25 07:31:15 +05:30
Patrick Walton
e881f0feeb Write animated values into the ComputedValues structures when
animations complete or are interrupted.

This adds a new pair of reader-writer locks. I measured the performance
of style recalculation on Wikipedia and the overhead of the locks was
not measurable.

Closes #7816.
2015-11-24 19:50:52 -06:00
bors-servo
6f35b867c9 Auto merge of #8653 - servo:no-regex-macros, r=Ms2ger
Remove dependency on regex_macros

This reduces the amount of code using unstable features that we depend on.
The hand-written IP address parser is probably just as fast.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8653)
<!-- Reviewable:end -->
2015-11-25 03:05:10 +05:30
Simon Sapin
45ec900745 Remove dependency on regex_macros
This reduces the amount of code using unstable features that we depend on.
The hand-written IP address parser is probably just as fast.
2015-11-24 22:07:14 +01:00
Simon Sapin
0dfdc94cb2 Remove IPv6 subnet parsing in host files like ::1/64
The host replacement code doesn’t do anything useful with it.
(It only compares strings.)
2015-11-24 22:07:06 +01:00
bors-servo
ed6a3f5022 Auto merge of #8609 - KiChjang:file-loader-headers, r=KiChjang
Add content_type to metadata in file_loader

Fixes #4212.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8609)
<!-- Reviewable:end -->
2015-11-25 01:49:26 +05:30
Keith Yeung
af705a6faf Add content_type to metadata in file_loader 2015-11-24 11:52:35 -08:00
bors-servo
e31478cc3d Auto merge of #8665 - Ms2ger:8647-enable, r=SimonSapin
Enable background-root-102 and background-root-103.

Fixes #8647.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8665)
<!-- Reviewable:end -->
2015-11-24 20:14:15 +05:30
Ms2ger
473b12683d Enable background-root-102 and background-root-103. 2015-11-24 15:34:54 +01:00
bors-servo
716cc8c8f5 Auto merge of #8652 - Ms2ger:update-tests, r=Ms2ger
Update tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8652)
<!-- Reviewable:end -->
2015-11-24 18:40:35 +05:30
Ms2ger
3a79c9b53f Update web-platform-tests to revision ee40b886c701ffa25a673240cabdedd59ee3ace4 2015-11-24 13:35:04 +01:00
Ms2ger
a00f2d6310 Update CSS tests to revision e102a993c37a2e0ebd549bc7d5548b006458ab34 2015-11-24 12:27:39 +01:00
bors-servo
037cac7353 Auto merge of #8651 - eefriedman:metadata-cleanup, r=jdm
Remove a couple dead ini files.

The directories in question no longer exist.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8651)
<!-- Reviewable:end -->
2015-11-24 12:13:50 +05:30
Eli Friedman
930b4bb7b7 Remove a couple of dead .ini files.
The directories in question no longer exist.
2015-11-23 19:32:36 -08:00
bors-servo
a2330f4943 Auto merge of #8632 - mrobinson:flow-tree-dump, r=pcwalton
Improve readability of flow tree dump

Use the PrintTree utility to improve the readability of flow tree
dumps. Blocks and fragments are now split over two dump levels, because
otherwise they are impenetrable. Also start printing the restyle damage of
fragments.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8632)
<!-- Reviewable:end -->
2015-11-24 07:49:07 +05:30
bors-servo
a8ba880e17 Auto merge of #8659 - frewsxcv:fix-travis, r=eefriedman
Fix travis by making manifest_changed.sh pass

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8659)
<!-- Reviewable:end -->
2015-11-24 06:30:13 +05:30
Patrick Walton
2843000810 Update ipc-channel to pick up the improved error reporting.
Intended to help diagnose intermittent failures.
2015-11-23 16:38:39 -08:00
bors-servo
0905088e83 Auto merge of #8655 - jdm:domain, r=jdm
Implement document.domain getter

Rebased from #6840 + test fixes.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655)
<!-- Reviewable:end -->
2015-11-24 06:01:13 +05:30
Martin Robinson
8dd664a438 Improve readability of flow tree dump
Use the PrintTree utility to improve the readability of flow tree
dumps. Blocks and fragments are now split over two dump levels, because
otherwise they are impenetrable. Also start printing the restyle damage of
fragments.
2015-11-23 15:17:32 -08:00