Commit graph

32486 commits

Author SHA1 Message Date
bors-servo
ca7463df9e
Auto merge of #20500 - emilio:1105111, r=xidorn
style: Add support for 'flex-basis:content' in the style system.

Bug: 1105111
Reviewed-by: xidorn
MozReview-Commit-ID: 5WhgHJJ0mDB

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20500)
<!-- Reviewable:end -->
2018-04-01 21:18:27 -04:00
Emilio Cobos Álvarez
ac088b4a72
style: Update bindings. 2018-04-02 03:17:57 +02:00
Emilio Cobos Álvarez
744809a8b2
style: Add support for 'flex-basis:content' in the style system.
Bug: 1105111
Reviewed-by: xidorn
MozReview-Commit-ID: 5WhgHJJ0mDB
2018-04-02 03:17:56 +02:00
bors-servo
1e2411d2c5
Auto merge of #20499 - emilio:1398537, r=emilio,dholbert
style: Implement percentages for 'column-gap'.

Bug: 1398537
Reviewed-by: emilio,dholbert
2018-04-01 18:59:15 -04:00
Mats Palmgren
3532f64b32
[css-multicol] style: Implement percentages for 'column-gap'.
Bug: 1398537
Reviewed-by: emilio,dholbert
2018-04-02 00:56:45 +02:00
bors-servo
9677d5c1ba
Auto merge of #20495 - LiHaoTan:move-text-emphasis-position, r=emilio
Move `text-emphasis-position` outside of mako

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` and `./mach build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fixes #19961

- [X] These changes do not require tests because this is refactoring.

~Just as a sanity check I ran `./mach test-wpt tests/wpt/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht` though I'm not sure if I'm correct since we are also building for `geckolib`. I guess the buildbot will make sure to run all the relevant tests anyway.~ I guess Travis and AppVeyor will run the web platform tests before the buildbot run all the tests later on.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20495)
<!-- Reviewable:end -->
2018-04-01 12:00:08 -04:00
Li Hao Tan
8d5a2a9aeb Refactor text-emphasis-position to use ${helpers.predefined_type(..)} 2018-04-01 21:12:01 +08:00
bors-servo
f7a495afa7
Auto merge of #20483 - fabricedesre:port-cleanup, r=paulrouget
Cleanup ports/servo to only rely on libservo

<!-- Please describe your changes on the following line: -->
When using `ports/servo` as a starting point for an embedding, it's easier if it only relies on the `libservo` crate and not directly on `components` ones. Since `libservo` reexports all the modules we need, it's a straightforward fix.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because There are no relevant tests, and no real code change.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20483)
<!-- Reviewable:end -->
2018-03-31 03:05:34 -04:00
Fabrice Desré
bab1394146 Cleanup ports/servo to only rely on libservo 2018-03-30 22:55:23 -07:00
bors-servo
260051da3c
Auto merge of #20484 - servo-wpt-sync:wpt_update_30-03-2018, r=jdm
Sync WPT with upstream (30-03-2018)

Automated downstream sync of changes from upstream as of 30-03-2018.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20484)
<!-- Reviewable:end -->
2018-03-30 23:35:39 -04:00
WPT Sync Bot
09b1413275 Update web-platform-tests to revision fc33be9acfbf8e883fd9683c527aab22d842542b 2018-03-30 23:11:51 -04:00
bors-servo
107fd47b93
Auto merge of #20479 - emilio:anon-child-bit, r=upsuper
style: Add a fast path to each_anonymous_content_child.

If we know that we don't have anon children it is pointless to go through FFI.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20479)
<!-- Reviewable:end -->
2018-03-30 20:31:36 -04:00
Emilio Cobos Álvarez
f815d2f9c6
style: Add a fast path to each_anonymous_content_child.
If we know that we don't have anon children it is pointless to go through FFI.
2018-03-30 21:06:34 +02:00
bors-servo
d232705106
Auto merge of #20454 - emilio:rustup, r=SimonSapin
Update to rust version 1.26.0-nightly (188e693b3 2018-03-26)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20454)
<!-- Reviewable:end -->
2018-03-29 09:12:45 -04:00
bors-servo
0c148809c1
Auto merge of #20434 - nupurbaghel:typed-array-xml, r=jdm
Typed array support for XMLHttpRequest's send API

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #20343

<!-- Either: -->
- [x] Updated some tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20434)
<!-- Reviewable:end -->
2018-03-29 02:02:37 -04:00
Nupur Baghel
3f06ccb1ac updated the test files due to typed array support 2018-03-29 11:29:26 +05:30
Nupur Baghel
2009c4e481 typed array support for XMLHttpRequest's send API 2018-03-29 11:10:00 +05:30
bors-servo
a69eceefc9
Auto merge of #20469 - servo-wpt-sync:wpt_update_28-03-2018, r=jdm
Sync WPT with upstream (28-03-2018)

Automated downstream sync of changes from upstream as of 28-03-2018.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20469)
<!-- Reviewable:end -->
2018-03-28 23:12:04 -04:00
WPT Sync Bot
0a3e19aac8 Update web-platform-tests to revision 592e2ed83ecd717392d37047536250ba74f1bafa 2018-03-28 22:44:05 -04:00
bors-servo
c8b0dc965d
Auto merge of #20468 - Eijebong:fix_log, r=mbrubeck
Fix style/build_gecko.rs for log 0.4

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20468)
<!-- Reviewable:end -->
2018-03-28 17:18:31 -04:00
Bastien Orivel
8d738a5048 Fix style/build_gecko.rs for log 0.4 2018-03-28 23:08:01 +02:00
bors-servo
914952487b
Auto merge of #20246 - marmistrz:test-lifetime-handles, r=jdm
Use higher level handles from JS bindings

…reak servo

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix https://github.com/servo/rust-mozjs/issues/153

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just migration to a lifetimed API
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20246)
<!-- Reviewable:end -->
2018-03-28 16:22:01 -04:00
Marcin Mielniczuk
356c57e628 Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00
bors-servo
12d82fe621
Auto merge of #20465 - Eijebong:log, r=SimonSapin
Bump env_logger to 0.5 and log to 0.4 in every servo crate

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20465)
<!-- Reviewable:end -->
2018-03-28 15:08:52 -04:00
Bastien Orivel
0918ac8cc7 Bump env_logger to 0.5 and log to 0.4 in every servo crate 2018-03-28 19:50:58 +02:00
bors-servo
e04d517bff
Auto merge of #20457 - servo-wpt-sync:wpt_update_27-03-2018, r=jdm
Sync WPT with upstream (27-03-2018)

Automated downstream sync of changes from upstream as of 27-03-2018.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20457)
<!-- Reviewable:end -->
2018-03-28 13:27:24 -04:00
bors-servo
433d2f6577
Auto merge of #20460 - upsuper:remove-stylebackendtype, r=emilio
Remove StyleBackendType uses

This is the Servo side change of [bug 1447828](https://bugzilla.mozilla.org/show_bug.cgi?id=1447828).
2018-03-28 08:15:14 -04:00
Xidorn Quan
dc25b51b6e Remove StyleBackendType uses. 2018-03-28 23:13:44 +11:00
WPT Sync Bot
ba1004338e Update web-platform-tests to revision 45d92ebc552d67936169a17e86980636b112bf18 2018-03-27 23:04:58 -04:00
bors-servo
25dcd0ecfd
Auto merge of #20450 - ysimonson:fix-13464, r=jdm
Properly rethrow any exceptions from parsing JSON in Body mixin's `Json()`

This fixes #13464 by rethrowing exceptions from parsing JSON.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #__ (github issue number if applicable).
- [X] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20450)
<!-- Reviewable:end -->
2018-03-27 22:44:32 -04:00
Yusuf Simonson
ac1e02405d Assert that we successfully got the pending exception 2018-03-28 10:11:32 +08:00
bors-servo
339146ae15
Auto merge of #20430 - aeweston98:aew-issue7084, r=jdm
Pass new method in CollectServoSizes to get size of ObjectPrivateVisitor

<!-- Please describe your changes on the following line: -->
These changes are the servo changes to allow the measurement of DOM objects with the ObjectPrivateVisitor API. Two new functions have been added MemoryReporter and get_size, which are passed as function pointers to two updated mozjs functions. Currently these changes rely on a branch version of mozjs, which has an [open pull request](https://github.com/servo/rust-mozjs/pull/409).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #7084 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20430)
<!-- Reviewable:end -->
2018-03-27 21:21:56 -04:00
Anthony Weston
7f7fc91758 Pass new method in CollectServoSizes for accurate DOM heap use reporting 2018-03-27 20:35:39 -04:00
bors-servo
97c12bd392
Auto merge of #20456 - upsuper:remove-nscsspseudoclasses, r=emilio
Remove nsCSSPseudoClasses and friends

This is the Servo side change of [bug 1449097](https://bugzilla.mozilla.org/show_bug.cgi?id=1449097) and [bug 1449089](https://bugzilla.mozilla.org/show_bug.cgi?id=1449089).
2018-03-27 18:51:48 -04:00
Xidorn Quan
688fb23d25 Remove nsCSSPseudoClasses.{h,cpp} and nsCSSPseudoClassList.h. 2018-03-28 09:50:14 +11:00
Xidorn Quan
e57b6c65a0 Move matching logic of :-moz-table-border-nonzero and :-moz-browser-frame into individual binding functions. 2018-03-28 09:50:14 +11:00
Xidorn Quan
911f174b70 Make :-moz-native-anonymous and :-moz-use-shadow-tree-root matches in Rust code. 2018-03-28 09:50:13 +11:00
Xidorn Quan
bb15111dab Use Servo to implement GetStatesForPseudoClass function in InspectorUtils. 2018-03-28 09:50:13 +11:00
bors-servo
84513d43ba
Auto merge of #19550 - kregoslup:issue_15725, r=jdm
Issue #15723: Skip git ignored files in update-manifest.

<!-- Please describe your changes on the following line: -->
This patch makes "./mach update-manifest" aware of .gitignore.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #15725 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't know how to test it, I have tried mocking opening file and checking whether it exists but it's difficult to handle both in py2.7 and py3 and I think it would say too much about `PathFilter` internals. I have also tried mocking `PathFilter` but then I would be duplicating logic in tests.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19550)
<!-- Reviewable:end -->
2018-03-27 12:05:37 -04:00
bors-servo
b8b2a8287a
Auto merge of #20451 - atouchet:macos, r=jdm
Change "OS X" to "macOS" in Readme and docs

Apple no longer uses the OS X branding.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20451)
<!-- Reviewable:end -->
2018-03-27 10:31:50 -04:00
Emilio Cobos Álvarez
9039a64747
Update rust to nightly-2018-01-27. 2018-03-27 13:20:07 +02:00
Emilio Cobos Álvarez
48ad41cfb5
Remove useless AsciiExt imports.
These warn with the next Nightly.
2018-03-27 10:30:02 +02:00
bors-servo
3561bcdbe6
Auto merge of #20444 - upsuper:overflow-placeholder, r=emilio
Add comment for overflow-{x,y} applying to ::placeholder

Add comment based on [flags in nsCSSPropList.h](https://searchfox.org/mozilla-central/rev/003262ae12ce937950ffb8d3b0fa520d1cc38bff/layout/style/nsCSSPropList.h#3244,3256).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20444)
<!-- Reviewable:end -->
2018-03-27 02:56:25 -04:00
Xidorn Quan
cda4e6d751 Add comment for overflow-{x,y} applying to ::placeholder. 2018-03-27 17:55:04 +11:00
atouchet
73a619359c Change "OS X" to "macOS" 2018-03-26 23:00:20 -07:00
Yusuf Simonson
2d53192666 Reordered imports to pass tidy 2018-03-27 13:28:57 +08:00
bors-servo
949a2ed552
Auto merge of #20449 - glennw:update-wr-box-shadows, r=jdm
Update WR (box shadow crash fix, clip task bug fix).
2018-03-27 00:05:23 -04:00
Glenn Watson
95fe713750 Update WR (box shadow crash fix, clip task bug fix). 2018-03-27 14:04:15 +10:00
bors-servo
8080f06870
Auto merge of #20446 - servo-wpt-sync:wpt_update_26-03-2018, r=jdm
Sync WPT with upstream (26-03-2018)

Automated downstream sync of changes from upstream as of 26-03-2018.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20446)
<!-- Reviewable:end -->
2018-03-26 22:49:33 -04:00
WPT Sync Bot
c6c4fb2f7a Update web-platform-tests to revision 06f77f6bfaa86f3643a79f1ec2c49c6b6955cf18 2018-03-26 22:40:53 -04:00