Commit graph

6128 commits

Author SHA1 Message Date
Matt Brubeck
d0fd7c83f6 Upgrade to latest stb_image 0.2.1 crates.io 2016-01-11 10:18:52 -08:00
bors-servo
e89dd05a16 Auto merge of #9230 - Aesthetikx:move_epoch_to_gfx_traits, r=KiChjang
Move Epoch to gfx_traits

Resolves #9222. Moved Epoch from components/msg/compositor_msg to
components/gfx_traits/lib. Updated use statements to reflect the move.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9230)
<!-- Reviewable:end -->
2016-01-11 09:19:23 +05:30
bors-servo
4d8d6bf7ff Auto merge of #9242 - frewsxcv:form-elements-sameobject, r=ecoal95
HTMLFormElement::Elements should honor [SameObject] attribute

Ideally, this would get tested by web-platform-tests, but that has yet
to be implemented:

https://github.com/w3c/web-platform-tests/issues/2462

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9242)
<!-- Reviewable:end -->
2016-01-11 05:19:56 +05:30
Corey Farwell
1ff1ec69dd HTMLFormElement::Elements should honor [SameObject] attribute
Ideally, this would get tested by web-platform-tests, but that has yet
to be implemented:

https://github.com/w3c/web-platform-tests/issues/2462
2016-01-10 18:27:07 -05:00
John DeSilva
f32995543d Move Epoch to gfx_traits
Resolves #9222. Moved Epoch from components/msg/compositor_msg to
components/gfx_traits/lib. Updated use statements to reflect the move.
2016-01-10 17:36:52 -05:00
bors-servo
663ac945c1 Auto merge of #9204 - connorimes:update-hb-energymon, r=Manishearth
Update heartbeats and energymon dependencies

Also aligns the heartbeats profiling script with current ProfilerCategory values.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9204)
<!-- Reviewable:end -->
2016-01-11 03:41:06 +05:30
bors-servo
85792d2819 Auto merge of #9200 - frewsxcv:unnecessary-sorting-functions, r=nox
Remove unneeded dict sorting functions in CodegenRust.py

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9200)
<!-- Reviewable:end -->
2016-01-11 02:41:42 +05:30
Corey Farwell
f72d153c8d Implement HTMLFormElement::Length 2016-01-10 14:44:13 -05:00
bors-servo
99d0142293 Auto merge of #9237 - frewsxcv:htmlformelement-elements, r=KiChjang
Implement HTMLFormElement::Elements

Fixes #8566

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9237)
<!-- Reviewable:end -->
2016-01-10 22:55:15 +05:30
Corey Farwell
d63c9d79d3 Remove unneeded dict sorting functions in CodegenRust.py 2016-01-10 12:20:46 -05:00
Corey Farwell
bff8947e43 Implement HTMLFormElement::Elements
Fixes #8566
2016-01-10 12:08:24 -05:00
bors-servo
d3889b4be4 Auto merge of #9236 - tgummerer:fix-9220, r=Wafflespeanut
Move LayerType enum to gfx_trait

The LayerType enum is only used in gfx_traits and layout, so it
shouldn't be defined in msg.  Move the definition to gfx_traits
instead.

Fixes #9220

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9236)
<!-- Reviewable:end -->
2016-01-10 21:18:45 +05:30
Thomas Gummerer
70a2179cd2 Move LayerType enum to gfx_trait
The LayerType enum is only used in gfx_traits and layout, so it
shouldn't be defined in msg.  Move the definition to gfx_traits
instead.

Fixes #9220
2016-01-10 16:20:37 +01:00
bors-servo
280c4e95f5 Auto merge of #9214 - frewsxcv:refactor-htmlfieldsetelement-elements, r=KiChjang
Refactor 'listed element' logic for HTMLFieldSetElement::Elements

`HTMLElement::is_listed_element` method was added, which matches the
`HTMLElement::is_labelable_element` method directly above

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9214)
<!-- Reviewable:end -->
2016-01-10 16:33:19 +05:30
bors-servo
d3e2f94f20 Auto merge of #9201 - wenderen:8512-task-thread, r=jdm
task -> thread

for #8512

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9201)
<!-- Reviewable:end -->
2016-01-10 15:49:04 +05:30
rohan.prinja
1f02c4ebbb task -> thread 2016-01-10 17:58:13 +09:00
bors-servo
aa713c9fbb Auto merge of #9209 - bholley:geckolib, r=SimonSapin
Implement a geckolib target

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9209)
<!-- Reviewable:end -->
2016-01-10 07:14:17 +05:30
bors-servo
42eee54967 Auto merge of #9212 - frewsxcv:webidl-spec-updates, r=KiChjang
Update a couple WebIDL files to match spec

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9212)
<!-- Reviewable:end -->
2016-01-10 02:38:34 +05:30
Bobby Holley
840df61ba3 Implement a geckolib target. 2016-01-09 12:37:56 -08:00
Corey Farwell
e3728f6167 Refactor 'listed element' logic for HTMLFieldSetElement::Elements
`HTMLElement::is_listed_element` method was added, which matches the
`HTMLElement::is_labelable_element` method directly above
2016-01-09 13:22:15 -05:00
bors-servo
2c0f81087b Auto merge of #9226 - nox:clean-console, r=KiChjang
Clean up Console a bit

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9226)
<!-- Reviewable:end -->
2016-01-09 23:06:57 +05:30
Anthony Ramine
189d373cbe Introduce Console::send_to_devtools
This replaces propagate_console_msg and wraps prepare_message.
2016-01-09 17:31:32 +01:00
Anthony Ramine
0e3f066e8a Remove the global field from Console
We can just go through the reflector.
2016-01-09 16:02:41 +01:00
Keith Yeung
c3f73b36e1 Fix documentation links for EventTarget 2016-01-09 06:33:36 -05:00
bors-servo
f00532bab0 Auto merge of #9213 - frewsxcv:broken-link, r=KiChjang
Fix broken spec link in HTMLScriptElement

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9213)
<!-- Reviewable:end -->
2016-01-09 14:17:20 +05:30
bors-servo
1819b6ea82 Auto merge of #9192 - mbrubeck:unused-encoding, r=pcwalton
Remove unused import in script

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9192)
<!-- Reviewable:end -->
2016-01-09 13:42:18 +05:30
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