Patrick Walton
fed904fff5
layout: Make position: relative
with non-auto z-index
create a
...
stacking context.
Improves imgur.com and Fast Company articles.
2015-08-22 12:22:33 -07:00
bors-servo
d78527feb6
Auto merge of #7314 - pcwalton:minor-form-beautification, r=mbrubeck
...
resources: Improve the look of form widgets a bit.
* Don't display unselected `<option>` elements inside `<select>`
dropdowns.
* Use CSS triangles to give `<select>` dropdowns a down arrow in order
to make them look as intended.
* Use borders instead of `( )` and `[ ]` for radio buttons and check
boxes, respectively.
Improves facebook.com and IMDB.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7314 )
<!-- Reviewable:end -->
2015-08-22 13:20:11 -06:00
Patrick Walton
4e0fb1ed61
resources: Improve the look of form widgets a bit.
...
* Don't display unselected `<option>` elements inside `<select>`
dropdowns.
* Use CSS triangles to give `<select>` dropdowns a down arrow in order
to make them look as intended.
* Use borders instead of `( )` and `[ ]` for radio buttons and check
boxes, respectively.
Improves facebook.com and IMDB.
2015-08-22 12:19:28 -07:00
bors-servo
d48f6ffbad
Auto merge of #7318 - dvberkel:link-to-components, r=Manishearth
...
Link organisation reference to source tree
I was going over the `ORGANIZATION.md` to learn about the servo project and I found myself looking up the directories that are mentioned. In order to facilitate this mode of exploration, I linked the various components to their corresponding directories.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7318 )
<!-- Reviewable:end -->
2015-08-22 11:42:38 -06:00
dvberkel
19bb26fa3e
Link organisation reference to source tree
2015-08-22 19:34:08 +02:00
bors-servo
60140ad294
Auto merge of #7315 - frewsxcv:python-is, r=SimonSapin
...
Don't use `is` operatory to compare Python strings
`is` checks identity. `==` checks value. I can't think of a reason why
we would want the former in these scenarios.
More info:
* http://stackoverflow.com/a/1504742
* https://docs.python.org/2/reference/expressions.html#is
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7315 )
<!-- Reviewable:end -->
2015-08-22 09:26:34 -06:00
Corey Farwell
5bf262770f
Don't use is
operatory to compare Python strings
...
`is` checks identity. `==` checks value. I can't think of a reason why
we would want the former in these scenarios.
More info:
* http://stackoverflow.com/a/1504742
* https://docs.python.org/2/reference/expressions.html#is
2015-08-22 10:22:47 -04:00
bors-servo
12c44d69f6
Auto merge of #7096 - paulrouget:glutin-update, r=glennw
...
Glutin update
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7096 )
<!-- Reviewable:end -->
2015-08-22 05:20:09 -06:00
Mahdi Dibaiee
b7d25159d3
Fix #7268 - getComputedStyle should take Element
, not HTMLElement
2015-08-22 15:16:15 +04:30
Paul Rouget
0209bf1199
Update glutin window port after glutin update
2015-08-22 12:12:26 +02:00
Connor Imes
054cbf2dce
Integrate with simple Heartbeats
2015-08-22 07:45:20 +08:00
bors-servo
5e83a3f0a3
Auto merge of #7312 - servo:flex-experimental, r=SimonSapin
...
Initial (very rudimentary) flexbox implementation.
This is #7154 with two additional commits (that I did rather than ask @zentner-kyle to do it because it was a bit tricky.)
r? @pcwalton for the last two commit
r=me+pcwalton in #7154 for earlier commits.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7312 )
<!-- Reviewable:end -->
2015-08-21 17:19:20 -06:00
Patrick Walton
930dfbb7ad
layout: Fix merge fallout.
2015-08-21 16:08:13 -07:00
Simon Sapin
2fa2a3b5a9
Sort imports.
2015-08-21 15:59:20 -07:00
Simon Sapin
133d7c14a8
Make display: flex
experimental.
2015-08-21 15:59:20 -07:00
Kyle Zentner
e3bbcb50d2
Add reftests for basic flexbox functionality.
...
These tests (flex_row_direction.html and flex_column_direction.html) are
correct, but only test the small amount of current flexbox
functionality.
2015-08-21 15:59:19 -07:00
Kyle Zentner
0e18f645f4
Implement FlexFlow::assign_block_size().
2015-08-21 15:59:19 -07:00
Kyle Zentner
e95c15816d
Implement FlexFlow::assign_inline_sizes().
2015-08-21 15:59:18 -07:00
Kyle Zentner
0488a36862
Create FlexFlow's for 'display: flex' nodes.
...
This commit doesn't implement any flexbox behavior at all.
It just constructs FlexFlow's, which act just like the BlockFlow from
which they "inherit."
2015-08-21 15:59:18 -07:00
Kyle Zentner
45b7ee9bdb
Parse flex-direction CSS property.
2015-08-21 15:59:16 -07:00
bors-servo
1f9778fad9
Auto merge of #7237 - servo:arc-flow, r=pcwalton
...
Replace FlowRef with Arc<Flow>, now that Arc supports DST.
… and `WeakFlowRef` with `Weak<Flow>`.
r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7237 )
<!-- Reviewable:end -->
2015-08-21 15:29:35 -06:00
Simon Sapin
21d69314d4
Don’t mark flow_ref::deref_mut as unsafe.
...
See discussion in https://github.com/servo/servo/pull/7237
2015-08-21 21:16:25 +02:00
bors-servo
a8c62f0f28
Auto merge of #7310 - OneKorg:bug-7309, r=SimonSapin
...
Mention max length in tidy check_length. Fixes #7309
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7310 )
<!-- Reviewable:end -->
2015-08-21 13:01:05 -06:00
OneKorg
07cde59535
Mention max length in tidy check_length. Fixes #7309
2015-08-21 11:26:13 -07:00
bors-servo
9277c33b63
Auto merge of #7307 - servo:update-css, r=Ms2ger
...
Update CSS tests to revision d674587d6ae7d2e231d632785559f2613d554eb0
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7307 )
<!-- Reviewable:end -->
2015-08-21 10:51:48 -06:00
Ms2ger
f235d49372
Update CSS tests to revision d674587d6ae7d2e231d632785559f2613d554eb0
2015-08-21 18:40:37 +02:00
bors-servo
3a48e04caf
Auto merge of #7305 - frewsxcv:python-context-managers, r=Ms2ger
...
Utilize Python context managers for opening/closing files
In some of these cases, files were not being closed
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7305 )
<!-- Reviewable:end -->
2015-08-21 09:30:06 -06:00
Corey Farwell
2ab43bea5d
Utilize Python context managers for opening/closing files
...
In some of these cases, files were not being closed
2015-08-21 11:15:17 -04:00
bors-servo
7c45ff8e05
Auto merge of #7299 - frewsxcv:cleanup-htmlcollection-iteration, r=Ms2ger
...
Cleanup Element iteration in dom/htmlcollection.rs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7299 )
<!-- Reviewable:end -->
2015-08-21 04:43:57 -06:00
Corey Farwell
03f257697d
Cleanup Element iteration in dom/htmlcollection.rs
2015-08-20 16:43:45 -04:00
David Zbarsky
b77698a649
Don't try to unwrap the result of requestAnimationFrame callback
2015-08-20 13:27:11 -04:00
bors-servo
c84b25cc99
Auto merge of #7297 - frewsxcv:avoid-disable-root-lint, r=Manishearth
...
Work around uses of #[allow(unrooted_must_root)]
Using this directive could cause rooting errors to be silently ignored,
so we should avoid it as much as possible
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7297 )
<!-- Reviewable:end -->
2015-08-20 11:19:21 -06:00
Corey Farwell
e2c700e6ad
Work around uses of #[allow(unrooted_must_root)]
...
Using this directive could cause rooting errors to be silently ignored,
so we should avoid it as much as possible
2015-08-20 13:18:05 -04:00
bors-servo
d2a8c278ea
Auto merge of #7254 - frewsxcv:own-property-keys, r=Ms2ger
...
Initial implementation of ownPropertyKeys proxy handler
Generates `SupportedPropertyNames` on DOM structs that should implement
it. Most of them are unimplemented now (which can be implemented in
later PRs), with the exception of `HTMLCollection`. Also added a couple
relevant WPT tests.
Closes #6390
Closes #2215
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7254 )
<!-- Reviewable:end -->
2015-08-20 10:00:44 -06:00
Corey Farwell
b11be4d253
Initial implementation of ownPropertyKeys proxy handler
...
Generates `SupportedPropertyNames` on DOM structs that should implement
it. Most of them are unimplemented now (which can be implemented in
later PRs), with the exception of `HTMLCollection`. Also added a couple
relevant WPT tests.
Closes #6390
Closes #2215
2015-08-20 11:58:42 -04:00
Simon Sapin
649250130b
Replace FlowRef with Arc<Flow>, now that Arc supports DST.
...
… and WeakFlowRef with Weak<Flow>.
2015-08-20 16:49:48 +02:00
bors-servo
5bab439ab6
Auto merge of #7049 - servo:cargoup, r=SimonSapin
...
Upgrade cargo to 0.5.0-nightly (657e363 2015-08-19)
Pick up https://github.com/rust-lang/cargo/pull/1830
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7049 )
<!-- Reviewable:end -->
2015-08-20 08:46:04 -06:00
Simon Sapin
2d22aa8e7e
Replace the unsound impl DerefMut for FlowRef
with an unsafe function.
...
See #6503 .
2015-08-20 16:24:26 +02:00
bors-servo
0466766b2c
Auto merge of #7238 - Wafflespeanut:workerglobal, r=Ms2ger
...
Improved field names for devtools-related channels...
(for #6924 ) - I took this because the confusion was actually caused by me while working on #6829
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7238 )
<!-- Reviewable:end -->
2015-08-20 08:17:30 -06:00
Simon Sapin
3870b81b07
Upgrade to cargo 0.5.0-nightly (657e363 2015-08-19)
...
Pick up https://github.com/rust-lang/cargo/pull/1908
2015-08-20 16:08:42 +02:00
Ravi Shankar
46195f29df
Improved field names for devtools-related channels; r=Ms2ger
2015-08-20 19:38:23 +05:30
bors-servo
a5fbb2f2a6
Auto merge of #7265 - tafia:tidy-use, r=Ms2ger
...
Add alphabetical order check for use statements
close #7112
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7265 )
<!-- Reviewable:end -->
2015-08-20 07:43:56 -06:00
bors-servo
c98c1651a3
Auto merge of #7289 - tgkokk:perspective-transform-origin-combine, r=dzbarsky
...
Combine transform-origin, perspective-origin code
First PR, please tell me if anything is wrong/could use improvement.
Fixes #7194 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7289 )
<!-- Reviewable:end -->
2015-08-20 07:10:14 -06:00
Johann Tuffe
009f6f63ad
check for uses to be sorted
2015-08-20 20:47:25 +08:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
bors-servo
39b7508aa2
Auto merge of #7251 - nox:text-transform-length-change, r=SimonSapin
...
Correctly handle length-changing mappings in text-transform
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7251 )
<!-- Reviewable:end -->
2015-08-20 06:40:33 -06:00
bors-servo
d3c7e31722
Auto merge of #7271 - Ms2ger:xhret, r=nox
...
Remove the unused XMLHttpRequestEventTarget::eventtarget method.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7271 )
<!-- Reviewable:end -->
2015-08-20 06:01:39 -06:00
bors-servo
8f05447a7b
Auto merge of #7294 - servo:tick-animations-with-no-layout-root, r=glennw+Ms2ger
...
layout: Don't panic if `requestAnimationFrame()` is called before first layout.
Closes #7115 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7294 )
<!-- Reviewable:end -->
2015-08-20 05:17:47 -06:00
Patrick Walton
a516042edb
layout: Don't panic if requestAnimationFrame()
is called before first layout.
...
Closes #7115 .
2015-08-20 13:17:07 +02:00
bors-servo
14b921ee29
Auto merge of #7285 - frewsxcv:bump-mozjs, r=Ms2ger
...
Bump js (rust-mozjs) to the latest commit
I need the constants added in
https://github.com/servo/rust-mozjs/pull/191 for
https://github.com/servo/servo/pull/7254
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7285 )
<!-- Reviewable:end -->
2015-08-20 02:52:40 -06:00