aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Implement a WorkerGlobalScopeInit struct to pass arguments to ↵Ms2ger2015-08-032-39/+38
| | | | | | | | | | | | | | | | | | | | WorkerGlobalScope::new_inherited more easily.
| * | | | Take WorkerGlobalScope's worker_id out of its Option.Ms2ger2015-08-034-8/+8
| |/ / / | | | | | | | | | | | | | | | | Unsurprisingly, every worker has an id, so there is no need to wrap it in an Option.
* | | | Auto merge of #6721 - mbrubeck:unicode-bidi, r=pcwaltonbors-servo2015-08-031-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the unicode-bidi CSS property r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6721) <!-- Reviewable:end -->
| * | | | Implement the unicode-bidi propertyMatt Brubeck2015-08-031-0/+1
| | |/ / | |/| |
* | | | Auto merge of #6917 - Ms2ger:lock-alert, r=metajackbors-servo2015-08-031-1/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lock and flush stdout in Window#alert. We use alert() to communicate test results to wptrunner. Unfortunately, sometimes the alert output is interleaved with other output on stdout, causing wptrunner to classify the test result as a timeout. I hope this will avoid that scenario. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6917) <!-- Reviewable:end -->
| * | | Lock and flush stdout in Window#alert.Ms2ger2015-08-031-1/+5
| |/ / | | | | | | | | | | | | | | | | | | We use alert() to communicate test results to wptrunner. Unfortunately, sometimes the alert output is interleaved with other output on stdout, causing wptrunner to classify the test result as a timeout. I hope this will avoid that scenario.
* | | Auto merge of #6903 - glennw:fix-height-again, r=pcwaltonbors-servo2015-08-031-8/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix percentage height calculation, absolute containing block height calculations. It's not possible to correctly determine during the css cascade whether the container height is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the *used* height, rather than the computed height. This significantly improves the layout in #6643. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6903) <!-- Reviewable:end -->
| * | Fix percentage height calculation, absolute containing block height ↵Glenn Watson2015-08-031-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calculations. It's not possible to correctly determine during the css cascade whether the container height is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the *used* height, rather than the computed height. This significantly improves the layout in #6643.
* | | Fixes issue #6866Harrison G2015-08-025-23/+36
|/ /
* | script: Use `Arc::make_unique` instead of `Arc::get_mut` when updatingPatrick Walton2015-08-021-11/+10
| | | | | | | | | | | | | | inline styles. Transitions make the reasoning in the comment in the relevant sections not true.
* | Auto merge of #6714 - boghison:filelist, r=jdmbors-servo2015-08-013-0/+63
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a FileList <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6714) <!-- Reviewable:end -->
| * | Implement the FileList interface. Fixes #6708Bogdan Cuza2015-08-013-0/+63
| | |
* | | Auto merge of #6741 - servo:fix-setpropertypriority, r=pcwaltonbors-servo2015-08-012-96/+115
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Fix CSSStyleDeclaration::setPropertyPriority and some refactoring r? @Ms2ger <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6741) <!-- Reviewable:end -->
| * | Remove some PropertyDeclaration cloning.Simon Sapin2015-07-312-45/+59
| | |
| * | Refactor CSSStyleDeclaration::setProperty to not synthesize a `name: value` ↵Simon Sapin2015-07-312-20/+14
| | | | | | | | | | | | string to parse.
| * | Fix CSSStyleDeclaration.setPropertyPrioritySimon Sapin2015-07-312-33/+44
| | | | | | | | | | | | | | | | | | Before, it was a complicated no-op. (`parse_style_attribute` expects input like `a: b; c: d;`, when given just a name it return an empty vector.)
* | | Persuading devtools to communicate with the workers; r=jdmRavi Shankar2015-08-014-32/+142
| | |
* | | Auto merge of #6839 - dzbarsky:atoms, r=jdmbors-servo2015-07-311-12/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use static atoms in HTMLFormElement Need to update to new string-cache first, which I think requires a rustup? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6839) <!-- Reviewable:end -->
| * | | Use static atoms in HTMLFormElementDavid Zbarsky2015-07-311-12/+8
| | | |
* | | | Auto merge of #6586 - pcwalton:resource-task-ipc, r=jdmbors-servo2015-07-317-20/+52
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script: Make the resource task communication use IPC channels. This change makes Servo use serialized messages over IPC channels for resource loading. The goal is to make it easier to make Servo multiprocess in the future. This patch does not make Servo multiprocess now; there are many other channels that need to be changed to IPC before that can happen. It does introduce a dependency on https://github.com/serde-rs/serde and https://github.com/pcwalton/ipc-channel for the first time. At the moment, `ipc-channel` uses JSON for serialization. This is because serde does not yet have official support for bincode. When serde gains support for bincode, I'll switch to that. For now, however, the JSON encoding and decoding will constitute a significant performance regression in resource loading. To avoid having to send boxed `AsyncResponseTarget` trait objects across process boundaries, this series of commits changes `AsyncResponseTarget` to wrap a sender only. It is then the client's responsibility to spawn a thread to proxy calls from that sender to the consumer of the resource data. This only had to be done in a few places. In the future, we may want to collapse those threads into one per process to reduce overhead. (It is impossible to continue to use `AsyncResponseTarget` as a boxed trait object across processes, regardless of how much work is done on `ipc-channel`. Vtables are fundamentally incompatible with IPC across mutually untrusting processes.) In general, I was pretty pleased with how this turned out. The main changes are adding serialization functionality to various objects that `serde` does not know how to serialize natively—the most complicated being Hyper objects—and reworking `AsyncResponseTarget`. The overall structure of the code is unchanged, and other than `AsyncResponseTarget` no functionality was lost in moving to serialization and IPC. r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6586) <!-- Reviewable:end -->
| * | | script: Fix test failures.Patrick Walton2015-07-312-5/+6
| | | |
| * | | script: Fix merge fallout.Patrick Walton2015-07-311-1/+7
| | | |
| * | | script: Make the resource task communication use IPC channels.Patrick Walton2015-07-316-36/+36
| | | |
| * | | net: Use a thread for each `AsyncResponseTarget` to avoid having to sendPatrick Walton2015-07-313-8/+22
| | | | | | | | | | | | | | | | trait objects across process boundaries.
| * | | net: Make most of the resource task messages serializable.Patrick Walton2015-07-315-16/+27
| |/ /
* / / Use local slice_charsJack Moffitt2015-07-311-4/+4
|/ / | | | | | | | | | | | | StrExt::slice_chars is deprecated and will be removed in Rust. This lifts the implementation from Rust libstd and puts it in util::str. This fixes a bunch of deprecation warnings in Servo.
* | Auto merge of #6851 - dzbarsky:gCS, r=jdmbors-servo2015-07-301-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Return None as style for elements not in a document <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6851) <!-- Reviewable:end -->
| * | Return None as style for elements not in a documentDavid Zbarsky2015-07-301-0/+5
| | |
* | | Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapinbors-servo2015-07-307-10/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) This builds and passes unit tests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850) <!-- Reviewable:end -->
| * | | Remove usage of the deprecated `box () (expr)` syntax.Simon Sapin2015-07-301-2/+2
| | | |
| * | | Remove usage of the deprecated OwnedAsciiExtSimon Sapin2015-07-304-6/+6
| | | |
| * | | Fix deprecation warningsSimon Sapin2015-07-242-2/+2
| | | |
* | | | Auto merge of #6846 - Ms2ger:2661-comment, r=jdmbors-servo2015-07-301-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove an obsolete comment I missed in #6804. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6846) <!-- Reviewable:end -->
| * | | | Remove an obsolete comment I missed in #6804.Ms2ger2015-07-301-2/+0
| | | | |
* | | | | Auto merge of #6800 - frewsxcv:childnode-before-childnode-after, r=Ms2gerbors-servo2015-07-301-30/+59
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement ChildNode::before & ChildNode::after Continued from #6536 The current implementations of `ChildNode::before` and `ChildNode::after` do not match the WHATWG spec. This commit updates the implementations to match the spec. Our current implementation of `ChildNode::after` passes all the WPT tests. So I made sure to add a regression test that failed with the current implementation. There are a few other unit tests I added to exhaust other corner cases I encountered. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6800) <!-- Reviewable:end -->
| * | | | | Implement ChildNode::before & ChildNode::afterCorey Farwell2015-07-291-30/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continued from #6536 The current implementations of `ChildNode::before` and `ChildNode::after` do not match the WHATWG spec. This commit updates the implementations to match the spec. Our current implementation of `ChildNode::after` passes all the WPT tests. So I made sure to add a regression test that failed with the current implementation. There are a few other unit tests I added to exhaust other corner cases I encountered.
* | | | | | Auto merge of #6783 - dzbarsky:replacechild, r=Ms2gerbors-servo2015-07-301-67/+61
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up Node::ReplaceChild <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6783) <!-- Reviewable:end -->
| * | | | | Clean up Node::ReplaceChildDavid Zbarsky2015-07-291-67/+61
| | | | | |
* | | | | | Auto merge of #6834 - jdm:named-constructor-prototype, r=Ms2gerbors-servo2015-07-291-1/+1
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use an actual byte string when defining the prototype of named constr… …uctors. Fixes #6730. r? @Ms2ger <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6834) <!-- Reviewable:end -->
| * | | | | Use an actual byte string when defining the prototype of named constructors. ↵Josh Matthews2015-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #6730.
* | | | | | Auto merge of #6798 - dzbarsky:gCS, r=pcwaltonbors-servo2015-07-295-4/+67
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement getComputedStyle It's not quite done but can probably be reviewed anyway. I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked. The computation of the used values is definitely not right, I'm going to investigate that. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798) <!-- Reviewable:end -->
| * | | | | | Implement getComputedStyleDavid Zbarsky2015-07-295-4/+67
| | |_|/ / / | |/| | | |
* | | | | | Auto merge of #6815 - nick-thompson:dispose_layout_data, r=jdmbors-servo2015-07-291-1/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dispose layout data for every node removed from the tree Fix for #6754. cc @jdm – I believe this is all that's required for the fix, but until I get a better sense of #6813, I'm unsure of the best way to test this. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6815) <!-- Reviewable:end -->
| * | | | | | Dispose layout data for every node removed from the treeNick Thompson2015-07-281-1/+2
| | | | | | |
* | | | | | | Auto merge of #6812 - ecoal95:webgl-fail, r=jdmbors-servo2015-07-291-9/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Make context creation fallible. Fixes #6806 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6812) <!-- Reviewable:end -->
| * | | | | | | webgl: Make context creation fallible. Fixes #6806ecoal952015-07-281-9/+12
| | |_|/ / / / | |/| | | | |
* | | | | | | Auto merge of #5851 - evilpie:background, r=SimonSapinbors-servo2015-07-292-2/+34
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the HTML background attribute Fixes #5835 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5851) <!-- Reviewable:end -->
| * | | | | | | small cleanupTom Schuster2015-06-201-3/+2
| | | | | | | |
| * | | | | | | Implement the HTML background attributeTom Schuster2015-06-202-2/+35
| | | | | | | |
* | | | | | | | Auto merge of #6809 - Ms2ger:unrooted_must_root, r=metajackbors-servo2015-07-291-1/+0
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unrooted_must_root annotation from unions (fixes #2661). The unsafety was fixed as part of the SpiderMonkey upgrade; this removes the now unused annotation. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6809) <!-- Reviewable:end -->