Stjepan Glavina
7b38f289b0
Implement URL.searchParams
...
Spec: https://url.spec.whatwg.org/#dom-url-searchparams
2016-04-05 16:10:05 +02:00
bors-servo
b38fafcf11
Auto merge of #10202 - ConnorGBrewster:stylesheet-node-mapping, r=nox
...
Added a mapping between nodes and stylesheets
Currently a work in progress solution for #10143 .
I am not sure how to make the stylesheets() func return a `Ref<Vec<Arc<Stylesheet>>>` or if this way work just as well.
If anyone has any feedback, that would be great.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10202 )
<!-- Reviewable:end -->
2016-03-31 20:48:03 +05:30
Connor Brewster
f727444a14
Added a mapping between nodes and stylesheets
...
Changed stylesheets into_iter to iter
2016-03-31 08:22:00 -06:00
bors-servo
3c00aff546
Auto merge of #10285 - nox:devtools-serde, r=Ms2ger
...
Use serde in devtools
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10285 )
<!-- Reviewable:end -->
2016-03-31 18:36:13 +05:30
Anthony Ramine
406273c641
Use serde in devtools
2016-03-31 11:07:18 +02:00
bors-servo
436f7316d9
Auto merge of #10297 - servo:the-offscreens, r=pcwalton
...
Update webrender with crates.io's offscreen_gl_context (fixes #10296 )
Crate webrender is bumped to the first commit in https://github.com/servo/webrender/pull/248 .
Crate webrender_traits is bumped to the merge of https://github.com/servo/webrender_traits/pull/21 .
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10297 )
<!-- Reviewable:end -->
2016-03-31 06:42:31 +05:30
bors-servo
af06d32628
Auto merge of #10287 - Ms2ger:domain, r=jdm
...
Include square brackets for IPv6 addresses in Document::domain.
The specification changed out from under us.
It's unfortunately impossible to write a test for this right now.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10287 )
<!-- Reviewable:end -->
2016-03-31 05:44:10 +05:30
Anthony Ramine
48b5d1d6be
Update webrender with crates.io's offscreen_gl_context ( fixes #10296 )
...
Crate webrender is bumped to the first commit in https://github.com/servo/webrender/pull/248 .
Crate webrender_traits is bumped to the merge of https://github.com/servo/webrender_traits/pull/21 .
2016-03-31 02:02:02 +02:00
Anthony Ramine
a81793c908
Reorder dependencies in components/canvas/Cargo.toml
2016-03-31 01:36:50 +02:00
bors-servo
ed9c64e827
Auto merge of #10275 - bholley:style_struct_templates, r=SimonSapin
...
Use more mako machinery in geckolib (and make a few small changes to style/properties.mako.rs)
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10275 )
<!-- Reviewable:end -->
2016-03-31 04:46:11 +05:30
bors-servo
e5e559d414
Auto merge of #10268 - Ms2ger:rc-runtime, r=Manishearth
...
Stop reference-counting Runtime for workers.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10268 )
<!-- Reviewable:end -->
2016-03-31 03:41:19 +05:30
bors-servo
723989b9dd
Auto merge of #10252 - emilio:selection, r=mbrubeck
...
Implement ::selection pseudo-element
It only supports `color` and `background`, for now, but it shouldn't be hard to add more properties (like text-shadow).
r? @mbrubeck
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10252 )
<!-- Reviewable:end -->
2016-03-31 00:47:07 +05:30
Bobby Holley
4959b69ba7
Use templates to implement the traits in geckolib.
2016-03-30 10:52:09 -07:00
Bobby Holley
d52299b17c
Move handling of additional-methods into the data structures.
2016-03-30 10:42:26 -07:00
Bobby Holley
0bdbf815f9
Take an initial pass of putting binding-generated gecko style structs inside GeckoComputedValues.
2016-03-30 10:33:57 -07:00
Bobby Holley
a7447aaf74
Don't require style structs to implement PartialEq.
...
It turns out this isn't necessary, and requiring it for gecko style structs
would be a pain.
2016-03-30 10:33:57 -07:00
Bobby Holley
4d2cf9e277
Remove unenforced trait bound that generates a warning.
...
Fixes #10239 .
2016-03-30 10:33:57 -07:00
Ms2ger
231208a522
Include square brackets for IPv6 addresses in Document::domain.
...
The specification changed out from under us.
It's unfortunately impossible to write a test for this right now.
2016-03-30 16:45:13 +02:00
bors-servo
e148571812
Auto merge of #10238 - jdm:winunit, r=larsbergstrom
...
Run unit tests on appveyor
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10238 )
<!-- Reviewable:end -->
2016-03-30 19:58:30 +05:30
bors-servo
821afa071e
Auto merge of #10242 - asajeffrey:remove-constellation-send-panic, r=metajack
...
Replace any uses of .send().unwrap() by .send().unwrap_or_else().
This is part of the effort to harden the constellation (#10124 ), in this case against panics caused by channel send.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10242 )
<!-- Reviewable:end -->
2016-03-30 19:06:38 +05:30
Emilio Cobos Álvarez
46829bd53c
tests: Fix warning in unit tests
2016-03-30 14:28:13 +02:00
Emilio Cobos Álvarez
4460712a8f
layout: Propagate selected_style to InlineFragmentNodeInfo
2016-03-30 14:28:13 +02:00
Emilio Cobos Álvarez
359f7b7953
layout: Fix whitespace selected style
2016-03-30 14:28:12 +02:00
Emilio Cobos Álvarez
5303048c06
layout: prevent an extra arc clone for selected_style
2016-03-30 14:28:11 +02:00
Emilio Cobos Álvarez
92f39ea5cf
Implement ::selection pseudo-element
2016-03-30 14:28:11 +02:00
bors-servo
4aa1da3211
Auto merge of #10283 - servo:js, r=nox
...
Update js (fixes #10229 ).
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10283 )
<!-- Reviewable:end -->
2016-03-30 16:43:35 +05:30
Ms2ger
8d202fd963
Update js ( fixes #10229 ).
2016-03-30 12:38:18 +02:00
bors-servo
77444d00be
Auto merge of #10279 - notriddle:issue_10258, r=mbrubeck
...
Fix #10258
Respect border-box when computing the relative sizes of children.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10279 )
<!-- Reviewable:end -->
2016-03-30 12:48:40 +05:30
bors-servo
21e4936f6a
Auto merge of #10276 - emilio:stylo-fixes-and-doc, r=bholley
...
Update struct bindings to take alignment into account
This takes alignment into account on non-translatable types, so the only
failing tests now are:
```
bindgen_test_layout_StyleAnimation
bindgen_test_layout_nsStyleSVG
```
This includes:
36f18c9603
r? @bholley
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10276 )
<!-- Reviewable:end -->
2016-03-30 11:55:55 +05:30
bors-servo
0ec96ac02a
Auto merge of #10277 - perlun:rename-tcomputedvalues-to-computedvalues, r=SimonSapin
...
Renamed TComputedValues to ComputedValues
This is a followup to #10210 , and a continuation of #10185 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10277 )
<!-- Reviewable:end -->
2016-03-30 11:04:57 +05:30
bors-servo
f6d60a716c
Auto merge of #10269 - jdm:cefwarn, r=Ms2ger
...
Fix some warnings
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10269 )
<!-- Reviewable:end -->
2016-03-30 08:44:37 +05:30
bors-servo
44b2ba2547
Auto merge of #10255 - mbrubeck:box-unscanned, r=pcwalton
...
Reduce size of layout::fragment::Fragment struct
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
r? @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10255 )
<!-- Reviewable:end -->
2016-03-30 07:49:25 +05:30
bors-servo
80d903a897
Auto merge of #10019 - rebstar6:htmllabelclick, r=jdm
...
Fix htmllabelelement click to activate correct element
Address https://github.com/servo/servo/issues/9928
Pass on label click to the label element's labeled control
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10019 )
<!-- Reviewable:end -->
2016-03-30 05:41:00 +05:30
Rebecca
e813f4a85a
Add test for HtmlLabelElement clicks
2016-03-29 18:49:56 -04:00
Rebecca
3c7e6a4be8
Fix HtmlLabelElement activation to run on correct element
...
Also removes old code that caused radio button clicks on disabled elements
2016-03-29 18:48:07 -04:00
Michael Howell
61c7ee917e
Compute content box for children with box-sizing: border-box correctly.
...
Fixes #10258
2016-03-29 14:37:54 -07:00
Michael Howell
38f683fcbc
Add test case for #10258
2016-03-29 14:37:53 -07:00
bors-servo
210a243137
Auto merge of #8496 - notriddle:master, r=jdm
...
Fix #8443
When there are viewport constraints, use the new window size to compute the viewport instead of the old one.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8496 )
<!-- Reviewable:end -->
2016-03-30 03:03:05 +05:30
Per Lundberg
4cb4cc93e4
Renamed TComputedValues to ComputedValues
...
This is a followup to #10210 , and a continuation of #10185 .
2016-03-29 23:30:13 +03:00
Emilio Cobos Álvarez
5756463fa1
Update struct bindings to take layout into account
...
This takes alignment into account on non-translatable types, so the only
failing tests now are:
```
bindgen_test_layout_StyleAnimation
bindgen_test_layout_nsStyleSVG
```
This includes:
36f18c9603
2016-03-29 21:27:39 +02:00
Michael Howell
ef571ef507
Add @SimonSapin's test case for #8443
2016-03-29 10:20:56 -07:00
bors-servo
e19d9c4596
Auto merge of #10265 - Ms2ger:reftest, r=jdm
...
Remove dead code that used to support the legacy reftest framework.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10265 )
<!-- Reviewable:end -->
2016-03-29 21:52:48 +05:30
Michael Howell
0a82d68f3e
Use the new device viewport size for constaints.
...
Fixes #8443
2016-03-29 09:11:12 -07:00
Matt Brubeck
33b9aa49db
Update path in script_tests::size_of error messages
2016-03-29 08:41:12 -07:00
Matt Brubeck
f0f0265139
Unbox IframeFragmentInfo.
2016-03-29 08:40:13 -07:00
Matt Brubeck
31261f045e
Put UnscannedTextFragmentInfo in a Box
...
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
2016-03-29 08:40:05 -07:00
Matt Brubeck
14e945f09a
Add a unit test for Fragment size
2016-03-29 08:37:58 -07:00
Alan Jeffrey
620ba84fdc
Replace any uses of .send(...).unwrap() by .send(...).unwrap_or_else(...).
2016-03-29 10:31:35 -05:00
bors-servo
df808bed20
Auto merge of #10267 - Ms2ger:canvas-channels, r=jdm
...
Simplify channel usage in canvas paint threads.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10267 )
<!-- Reviewable:end -->
2016-03-29 20:07:54 +05:30
Josh Matthews
aa8373b113
Update rust-mozjs to silence warnings.
2016-03-29 10:04:30 -04:00