Commit graph

16155 commits

Author SHA1 Message Date
bors-servo
388a2b41dc Auto merge of #9211 - mbrubeck:profile_tasks, r=pcwalton
Remove unimplemented -Z profile-tasks option

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9211)
<!-- Reviewable:end -->
2016-01-09 12:46:21 +05:30
bors-servo
809f64a283 Auto merge of #9188 - frewsxcv:unused-codegen-options, r=Manishearth
Remove unused command-line Python codegen arguments

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9188)
<!-- Reviewable:end -->
2016-01-09 10:20:45 +05:30
bors-servo
654636cf79 Auto merge of #9187 - Ms2ger:script-comments, r=jdm
Update specification references and TODO comments in HTMLScriptElement.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9187)
<!-- Reviewable:end -->
2016-01-09 08:30:08 +05:30
Corey Farwell
7973bb7d70 Fix broken spec link in HTMLScriptElement 2016-01-08 20:51:33 -05:00
Corey Farwell
8f35652f25 Update HTMLFormElement WebIDL to match spec
https://html.spec.whatwg.org/multipage/#htmlformelement
2016-01-08 20:38:56 -05:00
Corey Farwell
a1795a54d0 Update HTMLFieldSetElement WebIDL to match spec
https://github.com/whatwg/html/pull/413

https://html.spec.whatwg.org/multipage/#htmlfieldsetelement
2016-01-08 20:37:30 -05:00
bors-servo
1436ee5afa Auto merge of #9008 - mrobinson:reflow, r=pcwalton
More aggressively remove Fragment RestyleDamage

Now clean up damage on all fragments that belong to a Flow. This ensures
that damage does not re-propagate up to the parent Flow from the
Fragments. It also means that the flow tree dump should show a more
accurate picture of the state of the flow tree.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9008)
<!-- Reviewable:end -->
2016-01-09 07:01:23 +05:30
bors-servo
be555a9409 Auto merge of #9059 - mrobinson:simplify-display-list-sections, r=pcwalton
Use DisplayListSection everywhere

DisplayListSection, StackingLevel, and BackgroundAndBorderLevel all
represent pretty much the same thing, a particular section of the
display list. Instead of maintaining three enums which do the same
thing, just use DisplayListSection everywhere. It's a superset of the
other two and this change will make it easier to flatten the DisplayList
in the future for WebRender.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9059)
<!-- Reviewable:end -->
2016-01-09 06:22:44 +05:30
Connor Imes
b1b039aa94 Update heartbeats and energymon dependencies for profiling 2016-01-08 16:52:29 -06:00
Matt Brubeck
bfed072faa Remove unimplemented -Z profile-tasks option 2016-01-08 14:16:19 -08:00
Emilio Cobos Álvarez
0d1dfb9c43 webgl: Create the paint task object in the thread
This avoids problems like:
https://github.com/servo/servo/issues/9006#issuecomment-170007845
2016-01-08 21:46:07 +00:00
bors-servo
b8186a2203 Auto merge of #9195 - nikkisquared:rewrap_response, r=jdm
Replace Rc<RefCell<Response>> with Rc<Response>

Similar to why I'm doing #9172, I'm changing `Rc<RefCell<Response>>` into `Rc<Response>` and wrapping fields in `RefCell<T>` as needed. So far I've only needed to change `url_list`, but I'm sure I'll need to update more fields in the future.

There's two lines that don't compile that I'm not going to bother trying to fix until #9172 is approved, because getting them to work now will just require more changes after merging with the changes #9172 makes to them.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9195)
<!-- Reviewable:end -->
2016-01-09 01:32:45 +05:30
bors-servo
23f9da7b12 Auto merge of #9183 - Ms2ger:pin-clippy, r=Manishearth
Pin clippy to a working revision.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9183)
<!-- Reviewable:end -->
2016-01-09 00:55:39 +05:30
Nikki
c5982872c8 rewrapped Rc<RefCell<Response>> into Rc<Response> 2016-01-08 12:17:13 -07:00
Martin Robinson
d720452698 Use DisplayListSection everywhere
DisplayListSection, StackingLevel, and BackgroundAndBorderLevel all
represent pretty much the same thing, a particular section of the
display list. Instead of maintaining three enums which do the same
thing, just use DisplayListSection everywhere. It's a superset of the
other two and this change will make it easier to flatten the DisplayList
in the future for WebRender.
2016-01-08 10:19:03 -08:00
bors-servo
083d3e0201 Auto merge of #9193 - nerith:fire_event, r=KiChjang
Rename fire_simple_event_params to fire_event in eventtarget.rs

Fixes #9180.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9193)
<!-- Reviewable:end -->
2016-01-08 22:34:14 +05:30
bors-servo
58111a6420 Auto merge of #9177 - pcwalton:filter-out-useless-clips, r=glennw
gfx: Eagerly transform clips into `ClippingRegion::max()` if possible.

This helps WebRender look for useless clips and optimize them out.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9177)
<!-- Reviewable:end -->
2016-01-08 21:24:45 +05:30
bors-servo
a0d26445c0 Auto merge of #9171 - pcwalton:linear-gradients-background-clip, r=mbrubeck
Fix `linear_gradients_lengths_a.html` and fix Servo's use of "background-clip" to actually make it work.

See the commit messages for details.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9171)
<!-- Reviewable:end -->
2016-01-08 15:10:02 +05:30
bors-servo
ddc3b7942e Auto merge of #9176 - bholley:hoist_traversal, r=SimonSapin
Hoist traversal code into style/

This should be the last major hoisting necessary to use the style system standalone. \o/

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9176)
<!-- Reviewable:end -->
2016-01-08 13:57:39 +05:30
bors-servo
5cf2520e2f Auto merge of #9172 - nikkisquared:rewrap_request, r=jdm
Replace Rc<RefCell<Request>> with Rc<Request>

To make using Request easier, I've changed it from an `Rc<RefCell<T>>` to just `Rc<T>`, and updated individual fields to `RefCell<T>` or `Cell<T>` as needed. Git seems to be telling me there's a conflict with request.rs, which I resolved locally, but I'm not sure what to do (if anything) to make it easier to merge.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9172)
<!-- Reviewable:end -->
2016-01-08 12:37:38 +05:30
bors-servo
8e75a05e6b Auto merge of #9149 - adrianheine:webFonts, r=glennw
Correctly handle local sources for CSS3 fonts

Currently, servo panics for me when loading something like this:

```
@font-face {
  font-family: "test family";
  src: local(test font face);
}
```

That's due to a bug in `FontCacheTask`. `FontCacheTask` tries to get the value for the key
"test font face" from `self.web_families`, but previously initialized a value for the key "test family".

These two commits add an awkward test and fix the bug by not shadowing the variable `family_name`. Since the argument to `local()` should explicitly not be the name of a font family, the previous variable name was wrong and misleading anyways.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9149)
<!-- Reviewable:end -->
2016-01-08 04:47:55 +05:30
Bobby Holley
3b33174163 Review nits: Narrowly scoping unsafety, and expanding comment. 2016-01-07 11:17:31 -08:00
Nikki
67f4df5d3a changed Rc<RefCell<Request>> into Rc<Request> 2016-01-07 12:16:01 -07:00
Brandon Fairchild
fb0304cfdb Rename fire_simple_event_params to fire_event
Fixes #9180.
2016-01-07 13:49:49 -05:00
Matt Brubeck
e4f4b2ab81 Remove unused import in script 2016-01-07 09:12:41 -08:00
bors-servo
72ecbbe221 Auto merge of #9184 - servo:clippy, r=frewsxcv
Fix some clippy warnings.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9184)
<!-- Reviewable:end -->
2016-01-07 20:13:03 +05:30
Ms2ger
a7afb25e9f Use Option::cloned() in HTMLCanvasElement::GetContext(). 2016-01-07 14:51:19 +01:00
Ms2ger
ad1035f0a0 Remove an unused argument to CustomEvent::init_custom_event. 2016-01-07 14:51:18 +01:00
Corey Farwell
62a0cac3c0 Remove unused command-line Python codegen arguments 2016-01-07 08:51:06 -05:00
Ms2ger
649614eedc Update specification references and TODO comments in HTMLScriptElement. 2016-01-07 14:47:50 +01:00
bors-servo
e5fcb7a5b7 Auto merge of #9182 - Ms2ger:es-warning, r=Manishearth
Silence a warning in EventSourceReadyState.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9182)
<!-- Reviewable:end -->
2016-01-07 15:10:23 +05:30
Ms2ger
32903ba6d5 Pin clippy to a working revision. 2016-01-07 10:09:05 +01:00
Ms2ger
27ad50cfa7 Silence a warning in EventSourceReadyState. 2016-01-07 09:45:12 +01:00
Manish Goregaokar
f67e208630 Remove virtual call and unconditionally dirty node on set_focus_state 2016-01-07 13:38:05 +05:30
bors-servo
0fcee73ef3 Auto merge of #8860 - craftytrickster:8801/blob-vec, r=jdm
Changing blob to use arc pointers in order to limit wasteful copying …

Fixes #8801.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8860)
<!-- Reviewable:end -->
2016-01-07 13:07:42 +05:30
bors-servo
f3aa5b40ed Auto merge of #9179 - nerith:mixedmessage, r=KiChjang
script_task.rs: Use self::MixedMessage in handle_msgs

handle_msgs contains many references to variants of MixedMessage.

The function should directly reference the variants instead of
prepending `MixedMessage::`.

Fixes #9169.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9179)
<!-- Reviewable:end -->
2016-01-07 10:50:29 +05:30
Brandon Fairchild
0b25737113 script_task.rs: Use self::MixedMessage in handle_msgs
handle_msgs contains many references to variants of MixedMessage.

The function should directly reference the variants instead of
prepending `MixedMessage::`.

Fixes #9169.
2016-01-07 00:13:05 -05:00
Patrick Walton
3103b03262 gfx: Eagerly transform clips into ClippingRegion::max() if possible.
This helps WebRender look for useless clips and optimize them out.
2016-01-06 19:48:14 -08:00
Bobby Holley
29987a6715 Bonus Fix - Rename traverse_dom_preorder to traverse_dom.
The incorrect naming here was bugging me - the dom traversal has both pre- and post-order
processing steps.
2016-01-06 19:21:13 -08:00
Bobby Holley
136c0938a2 Hoist the style parts of sequential.rs into style/. 2016-01-06 19:21:11 -08:00
Bobby Holley
57d2a0b0db Make sequential traversal operate on TNode instead of LayoutNode.
I forgot to do this along with the parallel case. Ideally I'd merge this patch
into that one, but then I'd need to rebase it over the LayoutContext patch,
which would be a pain.
2016-01-06 19:21:09 -08:00
Bobby Holley
60b3c66b28 Hoist the style parts of parallel.rs into style/. 2016-01-06 19:21:07 -08:00
Bobby Holley
f9a02f0aba Hoist the style parts of traversal.rs into style/. 2016-01-06 18:50:16 -08:00
Bobby Holley
bf1a7d243f Remove the dependency of parallel DOM traversal and style calculation on LayoutContext. 2016-01-06 18:24:18 -08:00
Bobby Holley
ebc5eb1b98 Make parallel DOM traversal and style calculation operate on TNode instead of LayoutNode. 2016-01-06 17:58:53 -08:00
Patrick Walton
154f970b5b Remove the fontgroup address cache.
It's not clear to me that it actually helps. Moreover, it's wrong and
results in fonts randomly changing e.g. on GitHub when mousing over
elements.
2016-01-06 17:06:59 -08:00
David Raifaizen
76f689cd06 Changed blob to use DataSlice with Arc in order to limit wasteful copying of byte vector 2016-01-06 19:41:52 -05:00
bors-servo
238a8786de Auto merge of #9029 - KiChjang:event-source, r=jdm
Implement EventSource and update test expectations

Partial #8925.

Most of the processing model for `EventSource` are unimplemented because we currently don't have a fetch implementation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9029)
<!-- Reviewable:end -->
2016-01-07 00:38:25 +05:30
Patrick Walton
fdb791bdd5 layout: Take the value of background-clip into account when
determining the painting area for background images and gradients.

See: https://drafts.csswg.org/css-backgrounds-3/#the-background-clip
2016-01-06 10:39:51 -08:00
bors-servo
f4a2fe9501 Auto merge of #9164 - paulrouget:updatePipelineURL, r=jdm
update pipeline url after redirections

`pipeline.url` is not updated after a redirection.

Fixes #8902

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9164)
<!-- Reviewable:end -->
2016-01-06 21:53:41 +05:30