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
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
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
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
Ms2ger
d21cf30c2c
Simplify channel usage in canvas paint threads.
2016-03-29 15:35:46 +02:00
bors-servo
639fdd6b12
Auto merge of #10210 - perlun:rename-computedvalues-to-servocomputedvalues, r=SimonSapin
...
ComputedValues is now ServoComputedValues
This is the first part of #10185 . More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.
<!-- 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/10210 )
<!-- Reviewable:end -->
2016-03-29 18:25:40 +05:30
bors-servo
c4e112a3be
Auto merge of #10247 - eddyb:document-base-url, r=Ms2ger
...
Use <base> in resolving url attributes (like "href").
Second take of #6303 , now that the `base_url` infrastructure is in place.
<!-- 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/10247 )
<!-- Reviewable:end -->
2016-03-29 17:11:12 +05:30
Eduard Burtescu
1060c42225
Use <base> in resolving url attributes (like "href").
2016-03-29 13:44:38 +03:00
bors-servo
3f73321710
Auto merge of #10248 - pcwalton:float-speculation-with-negative-margins, r=mbrubeck
...
layout: Only take nonnegative margins into account when estimating inline placement of floats.
Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!
Closes #10237 .
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/10248 )
<!-- Reviewable:end -->
2016-03-29 16:04:01 +05:30
Ms2ger
a5ccebff5a
Remove dead code that used to support the legacy reftest framework.
2016-03-29 11:28:45 +02:00
bors-servo
159be44193
Auto merge of #10246 - mbrubeck:strip-leading, r=pcwalton
...
Restore stripped whitespace before reflowing text fragments
Fixes #10200 . r? @pcwalton
Note: The reftest uses a transition of non-zero duration, because I couldn't find any other way to reproduce the bug. Unfortunately this makes it unreliable in debug builds. I tried to fix this using reftest-wait with setTimeout and requestAnimationFrame, but it still wouldn't complete the animation consistently. To make the test work in debug builds we may need `transitionend` events (#10245 ) or a different way to reproduce the bug.
<!-- 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/10246 )
<!-- Reviewable:end -->
2016-03-29 14:30:40 +05:30
bors-servo
df73a18a61
Auto merge of #10208 - jrasanen:jr/issue10196, r=SimonSapin
...
Generate html and json of supported css properties.
Fixes #10196 . Outputs html and json of supported css properties to `target/doc/` directory when deploying github-pages.
<!-- 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/10208 )
<!-- Reviewable:end -->
2016-03-29 13:34:08 +05:30
bors-servo
aac2da75f4
Auto merge of #8641 - notriddle:no_headless, r=glennw
...
No more headless compositor. Just the normal one.
Fixes #8573
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8641 )
<!-- Reviewable:end -->
2016-03-29 12:42:01 +05:30
bors-servo
ddc57fe641
Auto merge of #10253 - eddyb:ipc-update, r=pcwalton
...
Update ipc-channel to fix leaks and spurious ENOBUFS.
Supersedes #10241 (fixes #10029 ).
Also fixes #9555 (hopefully for good).
<!-- 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/10253 )
<!-- Reviewable:end -->
2016-03-29 11:38:13 +05:30
bors-servo
074c7e8aa0
Auto merge of #10240 - servo:websocket, r=jdm
...
Bump websocket to 0.16.1
<!-- 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/10240 )
<!-- Reviewable:end -->
2016-03-29 09:55:17 +05:30
Josh Matthews
04df5decee
Avoid testing impossible file paths on Windows.
2016-03-28 23:16:10 -04:00
Eduard Burtescu
a2eecaae82
Update ipc-channel to fix leaks and spurious ENOBUFS.
2016-03-29 03:59:05 +03:00
Patrick Walton
6eb58e2c54
layout: Only take nonnegative margins into account when estimating
...
inline placement of floats.
Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!
Closes #10237 .
2016-03-28 17:37:57 -07:00
Matt Brubeck
99885b1950
Restore stripped whitespace before reflowing text fragments
...
Fixes #10200 .
2016-03-28 14:04:35 -07:00
bors-servo
cf4fa0a9f4
Auto merge of #10231 - paulrouget:selectionColor, r=mbrubeck
...
Make selection blue instead of orange
PR https://github.com/servo/servo/pull/10176 add a background color for selected text. It uses a builtin color until `::selection` is supported. ~~Orange makes sense for Linux. Let's make it blue for windows and mac.~~ See https://github.com/servo/servo/pull/10231#issuecomment-202335065
<!-- 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/10231 )
<!-- Reviewable:end -->
2016-03-28 23:23:25 +05:30
Anthony Ramine
e29beb10a8
Bump websocket to 0.16.1
2016-03-28 19:45:20 +02:00
bors-servo
db95de6e58
Auto merge of #10182 - mbrubeck:delete_char, r=jdm
...
Fix delete_char when selection range is empty
An empty selection range should be treated the same as no selection. Fixes browserhtml/browserhtml#930 .
r? @jdm
<!-- 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/10182 )
<!-- Reviewable:end -->
2016-03-28 20:43:11 +05:30
Jussi Räsänen
5098ad7d93
Changed mach test to use generated json file of properties
2016-03-28 17:19:04 +03:00
Jussi Räsänen
8e2af4cf05
Fixed script to output the JSON and create doc directory.
2016-03-28 16:32:14 +03:00
Jussi Räsänen
dbb5d11dd3
HTML generation with Mako instead of JS
2016-03-28 16:32:14 +03:00
Jussi Räsänen
e576fe94b2
Generate html and json of supported css properties.
...
Outputs html and json file of supported css properties to target/doc/
directory when deploying github-pages.
2016-03-28 16:32:14 +03:00
Paul Rouget
2bbf35f2aa
Use black on blue color for default selection color
2016-03-28 18:26:17 +08:00
Paul Rouget
63a0851b94
Selection is blue on Windows and Mac, orange on Linux
2016-03-28 11:11:24 +02:00
Paul Rouget
dd08e904eb
Disable cross origin check for mozbrowser-enabled top level pipelines
2016-03-28 10:29:31 +02:00
bors-servo
b97ffffb48
Auto merge of #10222 - faineance:master, r=KiChjang
...
Use self.0 instead of destructuring single item tuple structs.
Closes #9698 .
<!-- 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/10222 )
<!-- Reviewable:end -->
2016-03-28 04:12:31 +05:30