bors-servo
0566c60157
Auto merge of #16984 - emilio:lop-parsing-mode, r=canaltinova
...
Bug 1365629: Respect parsing mode in LengthOrPercentage. r=canaltinova
<!-- 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/16984 )
<!-- Reviewable:end -->
2017-05-21 10:36:54 -05:00
Emilio Cobos Álvarez
911d307f8f
Bug 1365629: Respect parsing mode in LengthOrPercentage. r=canaltinova
2017-05-21 17:02:42 +02:00
Emilio Cobos Álvarez
d5f8b91d91
style: Remove unneeded indirection in traversal code.
2017-05-21 16:47:22 +02:00
bors-servo
a25b1e5fe3
Auto merge of #16973 - servo:derive-all-the-things, r=emilio
...
Derive ToComputedValue
<!-- 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/16973 )
<!-- Reviewable:end -->
2017-05-21 08:48:10 -05:00
Anthony Ramine
07c0456cfd
Derive ToComputedValue
...
For now, only impls for types like in style::values::generics can be derived.
This also needed a few ToComputedValueAsSpecified impls that I would like to
replace by some #[to_computed_value(clone)] attribute, but I think it is ok
to keep it like this for now.
2017-05-21 15:31:17 +02:00
Emilio Cobos Álvarez
71dbc6c023
Bug 1366427: Make backdrop not inherit from the parent element. r=heycam
...
MozReview-Commit-ID: EnnmvDsgbdx
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-21 15:19:01 +02:00
bors-servo
3d40b516c8
Auto merge of #16976 - upsuper:bug1366247, r=nox
...
Add sugar for already_AddRefed
This is Servo side change of [bug 1366247](https://bugzilla.mozilla.org/show_bug.cgi?id=1366247 ).
<!-- 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/16976 )
<!-- Reviewable:end -->
2017-05-21 05:28:58 -05:00
Manfred Brandl
cb846e0b86
remove unused style::restyle_hints::RestyleReplacements
...
solve #16978
2017-05-21 12:25:25 +02:00
bors-servo
255387a915
Auto merge of #16945 - hiikezoe:update-css-animations-by-css-rule-changes, r=birtles,heycam
...
Update css animations by css rule changes
<!-- Please describe your changes on the following line: -->
This is a PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1364799
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because it's for stylo
<!-- 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/16945 )
<!-- Reviewable:end -->
2017-05-21 03:07:47 -05:00
Xidorn Quan
e30e676658
Update binding file.
2017-05-21 18:03:48 +10:00
Xidorn Quan
2b1f7f6081
Add sugar for already_AddRefed and use it for conversion between Atom and nsIAtom pointer.
2017-05-21 18:03:47 +10:00
Hiroyuki Ikezoe
9f0964fe1b
Update bindings.
2017-05-21 15:50:41 +09:00
Hiroyuki Ikezoe
6a72b66e7b
Create a SequentialTask for updating CSS animations in the case where the traversal is triggered by CSS rule changes.
2017-05-21 15:18:15 +09:00
Hiroyuki Ikezoe
dd29fc1f68
Add a new TraversalRestyleBehavior that represents the traversal is triggered by CSS rule changes.
...
And propagate the new flag to servo if mRestyleForCSSRuleChanges is set.
2017-05-21 15:18:15 +09:00
bors-servo
f14eeb00c0
Auto merge of #16971 - bholley:fix_parallelism, r=emilio
...
Rewrite parallel.rs
https://bugzilla.mozilla.org/show_bug.cgi?id=1366347
<!-- 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/16971 )
<!-- Reviewable:end -->
2017-05-21 01:12:22 -05:00
Bobby Holley
a182ae46f6
Rewrite parallel.rs to be not slow.
2017-05-21 07:45:39 +02:00
bors-servo
1602edb04a
Auto merge of #16975 - emilio:bindgenupagain, r=upsuper
...
style: Bump bindgen version.
This should fix bug 1365488, and also the template instantiation test noise
reported at https://github.com/servo/rust-bindgen/issues/619 .
<!-- 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/16975 )
<!-- Reviewable:end -->
2017-05-20 23:03:53 -05:00
bors-servo
03fbea4ec8
Auto merge of #16972 - emilio:sanity-is-important-most-of-the-time, r=bholley
...
style: Move all the style sharing code outside matching.rs
This is just a code health change. I want to move it away to keep matching.rs as
simple as possible.
<!-- 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/16972 )
<!-- Reviewable:end -->
2017-05-20 21:11:38 -05:00
Emilio Cobos Álvarez
6b5beb389c
style: Bump bindgen version.
...
This should fix bug 1365488, and also the template instantiation test noise
reported at https://github.com/servo/rust-bindgen/issues/619 .
2017-05-21 04:05:16 +02:00
Emilio Cobos Álvarez
99e5bb7a48
style: Rewrap some comments to be consistent with the rest of the file.
2017-05-21 03:06:40 +02:00
Emilio Cobos Álvarez
50c022f91a
style: Prefer is_null to comparison with ptr::null_mut.
2017-05-21 03:06:39 +02:00
Emilio Cobos Álvarez
cf6b3a0fcb
style: Simplify the rule tree GC code a bit.
2017-05-21 03:06:37 +02:00
Emilio Cobos Álvarez
e448c4a27e
style: Fix whitespace issue in the rule tree code.
2017-05-21 03:02:53 +02:00
Emilio Cobos Álvarez
311c403522
style: Move all the style sharing code outside matching.rs
...
This is just a code health change. I want to move it away to keep matching.rs as
simple as possible.
2017-05-21 02:30:51 +02:00
bors-servo
dbd4adf3b2
Auto merge of #16950 - servo:warn, r=nox
...
Fix warning in a future compiler version.
(Do not upgrade yet because of https://github.com/rust-lang/rust/issues/42101 )
<!-- 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/16950 )
<!-- Reviewable:end -->
2017-05-20 19:28:59 -05:00
heyzoos
fb755838ca
Return &Device instead of &Arc<Device>
2017-05-20 18:52:53 -05:00
Hiroyuki Ikezoe
d06af8971d
Support prefixed intrinsic size value for flex-basis.
...
auto() and zero() are used in the parser for flex shorthand property.
2017-05-21 08:33:12 +09:00
Hiroyuki Ikezoe
3a3bc03eb8
Support prefixed intrinsic size value for {width,height,{inline,block}-size}}.
2017-05-21 08:33:12 +09:00
Hiroyuki Ikezoe
aba0db0943
Factor out implemantations for {min,max} size properties as a macro.
2017-05-21 08:33:12 +09:00
Hiroyuki Ikezoe
57c27e5d35
Rename MinLength to MozLength.
...
So that we can reuse this for non-min-prefixed properties (e.g. width).
2017-05-21 08:33:12 +09:00
Hiroyuki Ikezoe
95bda2dff9
Combine LengthOrPercentage and Auto into LengthOrPercentageOrAuto for {Min,Max}Length.
2017-05-21 08:33:12 +09:00
bors-servo
d98abe1397
Auto merge of #16943 - emilio:bloom-restyle-hints, r=bholley
...
style: Make a bloom filter arrive to restyle hint computation.
<!-- 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/16943 )
<!-- Reviewable:end -->
2017-05-20 17:17:05 -05:00
Emilio Cobos Álvarez
a12996f030
style: Make a bloom filter arrive to restyle hint computation.
2017-05-21 00:12:16 +02:00
Emilio Cobos Álvarez
1cea4e7942
style: Use a SmallVec for common ancestors in the bloom filter.
2017-05-21 00:08:00 +02:00
bors-servo
323760f47e
Auto merge of #16933 - MortimerGoro:mutation_children, r=jdm
...
Implement MutationObserver childList mutations.
<!-- Please describe your changes on the following line: -->
Implement MutationObserver childList mutations
---
<!-- 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: -->
- [x] 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/16933 )
<!-- Reviewable:end -->
2017-05-20 15:04:43 -05:00
Anthony Ramine
a99e73ba6b
Silence a warning in servo_geometry
2017-05-20 22:00:36 +02:00
Anthony Ramine
cb2e04acf6
Remove style::values::HasViewportPercentage reexport
2017-05-20 22:00:05 +02:00
Aneesh Agrawal
043f78db53
Move nightly upload script into Mach
...
Now that MinGW and MSYS have been removed from the Windows builders,
bash is not available to run the previous upload_nightlies.sh script.
Convert the script to Python 2 for cross-platform support.
Additionally, switch to the `boto3` library for easy uploading
without needing to install `s3cmd`,
and move the code into mach for easy `boto3` installation
as the new `./mach upload-nightly` command.
Also, hard-code the paths to the packages instead of using
globs to look for them, as the paths are static.
(The paths used to contain timestamps,
but we now insert timestamps when uploading to S3
to improve reproducibility.)
2017-05-20 14:50:04 -04:00
bors-servo
05a26a2996
Auto merge of #16967 - emilio:after, r=heycam,emilio
...
Bug 1366144: Correctly diff ::before and ::after pseudo-element styles if there's no generated content. r=heycam
<!-- 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/16967 )
<!-- Reviewable:end -->
2017-05-20 13:44:31 -05:00
Emilio Cobos Álvarez
b30d48bf66
Mark tests/css/css21_dev/html4/border-collapse-dynamic-table-002.htm as failing.
2017-05-20 19:11:36 +02:00
bors-servo
4f0b24ac0c
Auto merge of #16960 - servo:derive-all-the-things, r=emilio
...
Derive HasViewportPercentage 🍷
<!-- 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/16960 )
<!-- Reviewable:end -->
2017-05-20 11:34:36 -05:00
heyzoos
e3d9c7449a
Add tests for the device and rule_tree accessors
2017-05-20 11:20:49 -05:00
Cameron McCormack
b46e196fa9
style: Generate RestyleHints to selector match at specific descendant depths.
2017-05-20 16:28:12 +02:00
Cameron McCormack
178939d8ce
style: Record in RestyleHints how far down the tree selector matching must be re-run.
2017-05-20 16:28:11 +02:00
Cameron McCormack
a397590838
style: Refactor RestyleHint to be a struct.
...
Later PRs will add additional data to it that is not so easy to
represent using bitflags.
2017-05-20 16:28:09 +02:00
Cameron McCormack
c13be5cd13
style: List the matched rules with trace-level logging is enabled.
2017-05-20 16:27:06 +02:00
Cameron McCormack
8b7a414b1c
style: Use RestyleDamage to determine whether we must continue cascading style changes to children.
2017-05-20 16:25:39 +02:00
Cameron McCormack
715d18d377
style: Add an outparam to Gecko_CalcStyleDifference that returns whether any style data changed.
2017-05-20 16:21:00 +02:00
Emilio Cobos Álvarez
605974a112
Bug 1366144: Correctly diff ::before and ::after pseudo-element styles if there's no generated content. r=heycam
...
MozReview-Commit-ID: BHSxMJd0G0O
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-20 16:20:59 +02:00
bors-servo
3ca7f4fc92
Auto merge of #16961 - emilio:bloom-simplify, r=heycam
...
style: Move some bloom filter code outside of matching.rs
Also simplify it, while we're at it.
<!-- 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/16961 )
<!-- Reviewable:end -->
2017-05-20 09:15:27 -05:00