Josh Matthews
c99b339376
Update block package to reduce warnings.
2016-04-04 15:29:57 -04:00
bors-servo
9f892edd87
Auto merge of #10272 - creativcoder:implement-data-url-fetch, r=jdm
...
implements data-url fetching
Fixes #10165
jdm mentioned of decoupling the, payload loading mechanism to data_loader.rs. So accordingly a `decoder` method has been added to data_loader.
<!-- 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/10272 )
<!-- Reviewable:end -->
2016-04-01 15:12:30 +05:30
Rahul Sharma
3e74164e5f
implements data-url fetching
2016-04-01 09:49:08 +05:30
bors-servo
f335586ff5
Auto merge of #10292 - jdm:cssom, r=jdm
...
Initial steps for CSSOM
Squashed and rebased #10133 .
<!-- 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/10292 )
<!-- Reviewable:end -->
2016-04-01 04:29:08 +05:30
Mohamed Albashir
b7a57ef487
Initial steps for CSSOM API
2016-03-31 18:17:30 -04:00
bors-servo
7518c4de93
Auto merge of #10082 - asajeffrey:remove-constellation-panic, r=glennw
...
Removed panicking when frame or pipeline lookup fails.
Removed the methods `pipeline(id)`, `pipeline_mut(id)`, `frame(id)` and `frame_mut(id)` from constellation, which panicked when the table lookup failed.
The panics were causing race conditions, e.g. visiting google.com and resizing the page would cause a panic, most likely due to an iframe being added and removed, with the `DOMLoad` event arriving after the iframe had been removed, causing a panic.
This patch fixes #10017 and #8769 (although in non-webrender builds there's now a different panic, see https://github.com/servo/servo/issues/10017#issuecomment-198160200 ).
There are a few `TODO` items in the initial commit, for cases where it's not completely obvious what to do in the case of failure.
<!-- 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/10082 )
<!-- Reviewable:end -->
2016-04-01 03:30:57 +05:30
Alan Jeffrey
df82a5b24f
Removed panicking when frame or pipeline lookup fails.
2016-03-31 16:18:36 -05:00
bors-servo
524a004e77
Auto merge of #10291 - jfhumann:10211, r=emilio
...
<!-- 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/10291 )
<!-- Reviewable:end -->
2016-04-01 01:57:20 +05:30
bors-servo
acaac52be7
Auto merge of #10288 - jdm:dictseq, r=nox
...
Enable dictionaries in WebIDL sequences. Fixes #10282 .
r? @nox
<!-- 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/10288 )
<!-- Reviewable:end -->
2016-04-01 00:28:13 +05:30
bors-servo
84a3dee67e
Auto merge of #10302 - emilio:webrender-up, r=nox
...
Update webrender to master
I'll rebase #10224 against it.
Sorry for the blocking of #10224 , I expected it to be reviewed way sooner, my fault for landing breaking changes.
r? @nox or @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/10302 )
<!-- Reviewable:end -->
2016-03-31 21:51:06 +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
Emilio Cobos Álvarez
97f4ef28d4
Update webrender to master
...
I'll rebase #10224 against it.
2016-03-31 15:49:22 +02: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
Jan-Fabian Humann
d778562844
#10211 : Stop re-exporting webrender_traits WebGL types from canvas_traits
2016-03-30 20:05:16 +02: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
Josh Matthews
042883eac2
Enable dictionaries in WebIDL sequences. Fixes #10282 .
2016-03-30 11:07:37 -04: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
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
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
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
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
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
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
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