Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstyle: Sync changes from mozilla-central. #22036
Conversation
…sform lists. As discussed in: w3c/csswg-drafts#927 with tentative spec text: w3c/csswg-drafts#3215 Differential Revision: https://phabricator.services.mozilla.com/D9185
Searchfox has better blame. Differential Revision: https://phabricator.services.mozilla.com/D9375
…imationPlayState. This change removes directives NS_STYLE_ANIMATION_PLAY_STATE_* and replaces the values with those from a scoped enum called StyleAnimationPlayState. Differential Revision: https://phabricator.services.mozilla.com/D9382
…ions. See the extended commit message for the following spec change: w3c/csswg-drafts@6b36d41 Basically, by failing to take the absolute value, for certain content we can end up doing division by zero which will mean that the test included in this patch will cause an assertion to fail in debug builds and return "matrix(NaN, NaN....)" in release builds. Differential Revision: https://phabricator.services.mozilla.com/D9618
frames() timing function was removed from the spec, so we drop it. Besides, some devtool tests are removed because they use frame(). I will add them back by using new step function later. Differential Revision: https://phabricator.services.mozilla.com/D9309
TimingFunction is defined in a separate spec (i.e. css-easing), instead of transform, so we move it into a different file. Depends on D9310 Differential Revision: https://phabricator.services.mozilla.com/D9311
We make sure the step number is always positive, so using computed::Integer is safe and can derive ToComputedValue. Depends on D9311 Differential Revision: https://phabricator.services.mozilla.com/D9845
First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use it in nsTimingFunction, so we could copy it directly without handling the different memory layout. However, we have to rewrite the nsTimingFunction and mozilla::ComputedTimingFunction for this. Second, the rust-bindgen seems cannot generate the correct generic members from complex C++ templates, especially for the nested template struct, (rust-lang/rust-bindgen#1429) So we have to hide StyleTimingFunction to avoid the compilation errors. Differential Revision: https://phabricator.services.mozilla.com/D9313
1. Add a new preference, layout.css.step-position-jump.enabled, for step(_, jump-*) timing functions. 2. We still keep JumpEnd and End tags, even though there is no difference between them. Therefore, we could disable the preference if needed. 3. Update the calculation of StepTiming to match the algorithm in the spec. 4. For servo, we implement the correct step function algorithm except for the handling of before_flag. This could be fixed later. Depends on D9313 Differential Revision: https://phabricator.services.mozilla.com/D9314
The selectors that crash seem just corrupted data structures, none of the selectors from crash dumps make sense, and the ones for which I could trace the source found no issue.
…oid a warning. Need to do the gecko_inexhaustive thing because those animation properties have an EndGuard_ generated by IPDL I suspect.
… other UAs. Bug: 1501908 Reviewed-by: emilio
highfive
commented
Oct 28, 2018
|
@bors-servo r+ |
|
|
style: Sync changes from mozilla-central. See each individual commit. This syncs everything except a bindgen update which is blocked on servo/mozjs#159.
|
@bors-servo r+
|
|
|
style: Sync changes from mozilla-central. See each individual commit. This syncs everything except a bindgen update which is blocked on servo/mozjs#159. <!-- 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/22036) <!-- Reviewable:end -->
|
|
|
@bors-servo retry
|
|
|
|
|
|
@bors-servo retry |
|
|
|
|
emilio commentedOct 28, 2018
•
edited by SimonSapin
See each individual commit.
This syncs everything except a bindgen update which is blocked on servo/mozjs#159.
This change is