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
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
Tom Schuster
0e0e051f3f
Implement document.domain getter
2015-11-23 15:45:02 -05:00
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
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
Eli Friedman
31c013858f
Make the needs_reflow method actually work correctly.
...
The document node is always dirty because layout never clears the bit;
instead, check the dirty bit of the root element.
2015-11-21 15:49:58 -08:00
David Zbarsky
8408891ec5
Parse currentColor as Canvas2D color
2015-11-21 11:59:19 -08:00
bors-servo
ea690a2dff
Auto merge of #8622 - frewsxcv:url-plugin, r=SimonSapin
...
Implement 'url!(..)' macro
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8622 )
<!-- Reviewable:end -->
2015-11-21 21:10:52 +05:30
Corey Farwell
f34da4120d
Implement 'url!(..)' macro
...
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
2015-11-21 08:15:56 -05:00
bors-servo
28582bb9f5
Auto merge of #8633 - rilut:remove-node-is-anchor-element, r=nox
...
Remove 'Node::is_anchor_element'
Should fixes #8631 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8633 )
<!-- Reviewable:end -->
2015-11-21 16:01:37 +05:30
Rizky Luthfianto
d3c852ed85
Remove 'Node::is_anchor_element'
2015-11-21 11:44:10 +07:00
Ms2ger
964c8355b7
Remove an unused trait.
2015-11-20 11:39:03 +01:00
bors-servo
8b39b9afed
Auto merge of #8599 - jdm:e10s-redux, r=metajack
...
compositing: Split Servo up into multiple sandboxed processes.
Multiprocess mode is enabled with the `-M` switch, and sandboxing is
enabled with the `-S` switch.
Rebase of #6884 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8599 )
<!-- Reviewable:end -->
2015-11-20 03:59:48 +05:30
Patrick Walton
1c130819ca
compositing: Split Servo up into multiple sandboxed processes.
...
Multiprocess mode is enabled with the `-M` switch, and sandboxing is
enabled with the `-S` switch.
2015-11-19 16:38:04 -05:00
bors-servo
e5c9b48598
Auto merge of #8589 - vegayours:8360_reduce_node_unique_id_size, r=eefriedman
...
Reduce node.unique_id size
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8589 )
<!-- Reviewable:end -->
2015-11-20 01:44:19 +05:30
bors-servo
ced8763b25
Auto merge of #8604 - Ms2ger:unused-import, r=jdm
...
Remove unused import.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8604 )
<!-- Reviewable:end -->
2015-11-19 22:12:19 +05:30
Ms2ger
b7117893af
Rename a confusing argument.
2015-11-19 16:18:28 +01:00
Ms2ger
bf7053bc17
Remove unused import.
2015-11-19 16:14:47 +01:00
bors-servo
acbe413052
Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdm
...
Split ConstellationMsg into ScriptMsg and CompositorMsg
Fixes #8356 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530 )
<!-- Reviewable:end -->
2015-11-19 04:39:20 +05:30
Aleksandr Likhanov
4bf21ab15e
reduce node.unique_id size
...
fix sizeof unittest
update Cargo.lock
2015-11-19 00:48:20 +05:00
bors-servo
7a87312121
Auto merge of #8569 - Ms2ger:fmt-script, r=metajack
...
Rustfmt some of script.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8569 )
<!-- Reviewable:end -->
2015-11-18 15:44:30 +05:30
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
bors-servo
247f586284
Auto merge of #8572 - nerith:idiomatic, r=frewsxcv
...
Make Node::is_parent_of and Stylesheet::is_effective_for_device more idiomatic
Fixes #8555 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8572 )
<!-- Reviewable:end -->
2015-11-18 04:53:17 +05:30
Brandon Fairchild
6a28d62b15
Make Node::is_parent_of more idiomatic
2015-11-17 16:58:37 -05:00
Corey Farwell
6e3878d254
Add tracking issue for HTMLFormControlsCollection
2015-11-17 10:06:17 -05:00
Keith Yeung
19294db6e5
Split ConstellationMsg into ScriptMsg and CompositorMsg
2015-11-16 23:10:53 -08:00
bors-servo
20d26853e1
Auto merge of #8548 - Ms2ger:unused-tna, r=pcwalton
...
Remove the unused arguments to hit_test and mouse_over.
I don't think this code is called when there is no document element, but I
added assertions to make sure we notice in case I was wrong.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8548 )
<!-- Reviewable:end -->
2015-11-17 02:05:52 +05:30
bors-servo
c1e6bc0714
Auto merge of #8538 - notriddle:github_resize, r=mbrubeck
...
Ignore `<meta name=viewport>` if `@viewport` is ignored
Fixes #8373
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8538 )
<!-- Reviewable:end -->
2015-11-17 00:31:49 +05:30
Ms2ger
4e60412c6d
Remove the unused arguments to hit_test and mouse_over.
...
I don't think this code is called when there is no document element, but I
added assertions to make sure we notice in case I was wrong.
2015-11-16 15:53:49 +01:00
Michael Howell
987c9e63aa
Ignore <meta name=viewport>
if @viewport
is.
...
Fixes #8373
2015-11-15 20:35:13 -07:00
bors-servo
b6f519cd0a
Auto merge of #8533 - Ms2ger:legacy, r=nox
...
Remove the `legacy` module.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8533 )
<!-- Reviewable:end -->
2015-11-15 19:13:13 +05:30
Ms2ger
f2be9eb735
Move the from_declaration to its only caller and remove the empty legacy module.
2015-11-15 13:57:22 +01:00
bors-servo
c722e0e6f4
Auto merge of #8527 - romankl:atom-slices, r=Ms2ger
...
Replace Atom::from_slice("sizes") with atom!("sizes")
This PR replaces all occurrences of Atom::from_slice("sizes") with atom!("sizes"). It also updates string_cache to v0.1.17 from 0.1.16.
Right now I've split the crate update and the replace in different commits - should I squash them?
Fixes #8488 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8527 )
<!-- Reviewable:end -->
2015-11-15 18:26:33 +05:30
Ms2ger
9c1d678b1b
Remove get_unsigned_integer_attribute.
2015-11-15 11:24:03 +01:00
Ms2ger
5417df6397
Introduce a get_colspan method on LayoutJS<Element>.
2015-11-15 11:16:17 +01:00
bors-servo
3ef0a9a79d
Auto merge of #8526 - frewsxcv:parse-length, r=eefriedman
...
Fix parse_length 0 values, implement <hr> 'width'
Follow-up to https://github.com/servo/servo/issues/8424
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8526 )
<!-- Reviewable:end -->
2015-11-15 03:30:46 +05:30
Corey Farwell
02a8e8dd16
Implement <hr> element 'width' attribute
2015-11-14 16:46:59 -05:00
Roman Klauke
0813ee7257
replace Atom::from_slice("sizes") with atom!(sizes")
...
Closes : #8488
2015-11-14 20:58:57 +01:00
bors-servo
7f076c628b
Auto merge of #8449 - paulrouget:favicon, r=jdm
...
mozbrowsericonchange event (Browser API)
fixes #8347
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8449 )
<!-- Reviewable:end -->
2015-11-14 19:54:03 +05:30
Paul Rouget
5263a4c4c9
[Browser API] implement mozbrowsericonchange event
2015-11-14 09:59:50 +01:00
Greg Guthe
e49d592fba
Add DOM-related performance timing properties
2015-11-13 17:51:34 -05:00
bors-servo
f078f8fdf4
Auto merge of #8505 - frewsxcv:html-table-cell-element-bgcolor-idl-attribute, r=Ms2ger
...
Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement'
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8505 )
<!-- Reviewable:end -->
2015-11-13 15:07:53 +05:30
Corey Farwell
765ade6892
Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement'
2015-11-13 00:47:20 -05:00
Corey Farwell
7b8d5bbb97
Prefer atoms over strs for string comparisons
2015-11-12 23:46:48 -05:00
bors-servo
62acdd303b
Auto merge of #8477 - asajeffrey:opaque-domstring, r=asajeffrey
...
Opaque DOMString
This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper).
The changes are:
* Replacing DOMString(foo) by DOMString::from(foo).
* Replacing foo.0 by String::from(foo).
* Adding functions clear, push_str and extend for in-place mutation of DOMStrings.
* Replacing DOMString by String in other threads (devtools, storage and filereader).
* Making DOMString implement !Send.
* Removing the pub attribute from the contents of DOMString.
This enables experimenting with other string representations in the DOM.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8477 )
<!-- Reviewable:end -->
2015-11-13 07:17:30 +05:30
bors-servo
e63b1e83d4
Auto merge of #8147 - nox:weakref, r=Ms2ger
...
Implement weak-referenceable JS-managed objects
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8147 )
<!-- Reviewable:end -->
2015-11-13 06:22:40 +05:30
Alan Jeffrey
5db67b5981
Added in-place mutation to DOMString.
...
The methods which are currently implemented are the ones on String that are currently being used:
string.push_str(...), string.clear() and string.extend(...). We may want to revisit this API.
2015-11-12 17:53:01 -06:00
Alan Jeffrey
034769f280
Code generation uses DOMString::from("...") rather than DOMString("...".to_owned()).
2015-11-12 17:53:00 -06:00