Brandon Fairchild
341e66f66d
Remove #[allow(raw_pointer_derive)]
attributes
...
The attributes are unused.
Fixes #8699 .
2015-11-27 14:32:57 -05:00
bors-servo
99223656fb
Auto merge of #8675 - GuillaumeGomez:master, r=nox
...
Add XMLDocument object
Fixes #8000
(Still working on it)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8675 )
<!-- Reviewable:end -->
2015-11-27 19:29:04 +05:30
Guillaume Gomez
adf8b359bb
Add XMLDocument object
2015-11-27 14:55:41 +01:00
Simon Sapin
8d7d132c93
Upgrade to rustc 1.6.0-nightly (1805bba39 2015-11-26)
2015-11-27 14:33:29 +01:00
Keith Yeung
d426dd29d1
Use set_plaintext_state instead of plaintext tag
2015-11-27 00:45:34 -08:00
bors-servo
a515fe320b
Auto merge of #8516 - KiChjang:http-fetch-refactor, r=jdm
...
Refactor http_fetch to reflect the new standard
Partial #4576 . The spec is really getting funky now - it's depending more and more on the DOM objects (e.g. prompting the user for authentication using a `Window` object). I think we can just pass in username and password as properties of the `Request` struct though.
I've also added in the async version for http_request.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8516 )
<!-- Reviewable:end -->
2015-11-27 11:39:32 +05:30
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
bors-servo
bc618b0d53
Auto merge of #8689 - jdm:deps, r=frewsxcv
...
Remove remaining version-conflict exceptions in tidy.py.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8689 )
<!-- Reviewable:end -->
2015-11-27 09:17:54 +05:30
Keith Yeung
7d3eb72a26
Refactor http_fetch to reflect the new standard
2015-11-26 17:12:19 -08:00
bors-servo
f96e8ce9e8
Auto merge of #8685 - jmr0:master, r=Ms2ger
...
tidy rule to warn against use of &String and refactoring
Fixes #8681
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8685 )
<!-- Reviewable:end -->
2015-11-27 04:48:38 +05:30
bors-servo
f5ef2f4f75
Auto merge of #8682 - jdm:css-error-reporter, r=jdm
...
Defined new trait ParseErrorReporter and added error_reporter member …
…to ParserContext.
Rebase of #8210 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8682 )
<!-- Reviewable:end -->
2015-11-27 03:56:08 +05:30
bors-servo
3614ed74d9
Auto merge of #8679 - jdm:rmprintln, r=larsbergstrom
...
Fix #8502 by not printing the message which is known to be repeated m…
…illions of times.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8679 )
<!-- Reviewable:end -->
2015-11-27 03:26:35 +05:30
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
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
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
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
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
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
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
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
bors-servo
711f516d80
Auto merge of #8639 - bholley:generalize_wrappers2, r=pcwalton
...
Use associated types for layout wrapper trait, and generalized ThreadSafeLayoutFoo
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8639 )
<!-- Reviewable:end -->
2015-11-24 04:01:32 +05:30
Tom Schuster
0e0e051f3f
Implement document.domain getter
2015-11-23 15:45:02 -05:00
bors-servo
6449cd09eb
Auto merge of #8542 - KiChjang:style-whitespace-methods, r=SimonSapin
...
Extend whitespace::T with additional helper methods
Fixes #8128 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8542 )
<!-- Reviewable:end -->
2015-11-23 23:39:07 +05:30
bors-servo
6ef6d664aa
Auto merge of #8656 - servo:canvas-currentcolor, r=SimonSapin
...
Implement currentColor for Canvas colors
Fixes #7120 .
This is #7120 by @dzbarsky, with one tidy error fixed.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8656 )
<!-- Reviewable:end -->
2015-11-23 23:09:57 +05:30
Simon Sapin
18ecf54d10
Tidy.
2015-11-23 16:16:35 +01:00
bors-servo
e3eee5a41b
Auto merge of #8597 - r0e:testing, r=Manishearth
...
Fix for #8593 'loop..match' should be 'while let'
As per #8593 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8597 )
<!-- Reviewable:end -->
2015-11-23 08:18:20 +05:30
bors-servo
6ab205a97e
Auto merge of #8644 - fitzgen:remove-unused-imports-in-scropt-dom-node, r=eefriedman
...
Remove two unused imports from components/script/dom/node.rs
Fixes these two compiler warnings:
```
Compiling servo v0.0.1 (file:///Users/fitzgen/src/servo/components/servo)
/Users/fitzgen/src/servo/components/script/dom/node.rs:26:65: 26:78 warning: unused import, #[warn(unused_imports)] on by default
/Users/fitzgen/src/servo/components/script/dom/node.rs:26 use dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId};
^~~~~~~~~~~~~
/Users/fitzgen/src/servo/components/script/dom/node.rs:27:53: 27:70 warning: unused import, #[warn(unused_imports)] on by default
/Users/fitzgen/src/servo/components/script/dom/node.rs:27 use dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId};
^~~~~~~~~~~~~~~~~
```
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8644 )
<!-- Reviewable:end -->
2015-11-22 17:06:48 +05:30
bors-servo
3199eace98
Auto merge of #8642 - jmr0:master, r=jdm
...
making internal pub enums, functions, and structs private
Refactoring to fix #8620
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8642 )
<!-- Reviewable:end -->
2015-11-22 16:15:36 +05:30
Nick Fitzgerald
bd857cb1cb
Remove two unused imports from components/script/dom/node.rs
...
Fixes these two compiler warnings:
```
Compiling servo v0.0.1 (file:///Users/fitzgen/src/servo/components/servo)
/Users/fitzgen/src/servo/components/script/dom/node.rs:26:65: 26:78 warning: unused import, #[warn(unused_imports)] on by default
/Users/fitzgen/src/servo/components/script/dom/node.rs:26 use dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId};
^~~~~~~~~~~~~
/Users/fitzgen/src/servo/components/script/dom/node.rs:27:53: 27:70 warning: unused import, #[warn(unused_imports)] on by default
/Users/fitzgen/src/servo/components/script/dom/node.rs:27 use dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId};
^~~~~~~~~~~~~~~~~
```
2015-11-21 21:45:55 -08:00
bors-servo
ed65fd2970
Auto merge of #8637 - alex:disable-ssl, r=Manishearth
...
Always disable SSLv2 and SSLv3.
These protocols have serious known weakness and our turned off in other browsers.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8637 )
<!-- Reviewable:end -->
2015-11-22 09:56:38 +05:30