Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Sync changes from mozilla-central. #25299

Merged
merged 28 commits into from Dec 17, 2019
Merged

Commits on Dec 15, 2019

  1. style: Check for border-image-* initial specified values when seriali…

    …zing border shorthand.
    
    Differential Revision: https://phabricator.services.mozilla.com/D55588
    nordzilla authored and emilio committed Dec 15, 2019

Commits on Dec 16, 2019

  1. style: Correctly style dark scrollbars in tree components.

    We need to ensure the rules that override all properties for scrollbar
    part elements only apply to those that are NAC (and so will be eligible
    for NAC style sharing).  We have some uses of non-NAC <scrollbar>
    elements that should continue to inherit properties from their parents.
    
    To avoid any changes in rule matching order that come with changing specificity,
    we add a new :-moz-native-anonymous-no-specificity pseudo-class.
    
    While we're here, we note :-moz-native-anonymous-no-specificity (and the
    regular :-moz-native-anonymous pseudo-class) as not needing style
    sharing cache revalidation, as we never share NAC styles.
    
    Differential Revision: https://phabricator.services.mozilla.com/D56154
    heycam authored and emilio committed Dec 16, 2019
  2. style: Invalidate shadow part pseudo-class styles correctly.

    I was going to send a test for `:focus` via wpt, but then realized it was
    probably not spec-compliant with the new rules people want to follow for
    :focus, so I filed w3c/csswg-drafts#4555 instead.
    
    Testing `:hover` / `:active` via wpt looked quite a bit of a hassle.
    
    Differential Revision: https://phabricator.services.mozilla.com/D55591
    emilio committed Dec 16, 2019
  3. style: Fix serialization of @namespace rule.

    This code comes from:
    
    https://hg.mozilla.org/mozilla-central/rev/2418cfba72c33c5623f6fb4c243c5203819c8240
    
    I audited other callers of write_str, they seem ok.
    
    Differential Revision: https://phabricator.services.mozilla.com/D54601
    emilio committed Dec 16, 2019
  4. style: Preserve CSS input exactly during sanitization.

    This avoids the mutation due to the different serialization in some cases.
    
    Differential Revision: https://phabricator.services.mozilla.com/D56732
    emilio committed Dec 16, 2019
  5. style: Remove full-screen-api.unprefix.enabled.

    It's been enabled since Firefox 64.
    
    Differential Revision: https://phabricator.services.mozilla.com/D56951
    emilio committed Dec 16, 2019
  6. style: Use less Au in font code.

    Font code is the only thing that was using Au in the style system without
    interfacing with Gecko, and there was no real reason for it to do so.
    
    This slightly simplifies the code.
    
    Differential Revision: https://phabricator.services.mozilla.com/D57248
    emilio committed Dec 16, 2019
  7. style: Make LengthPercentage not copy.

    This is needed to support min() / max() / clamp(), etc.
    
    Differential Revision: https://phabricator.services.mozilla.com/D57249
    emilio committed Dec 16, 2019
  8. Update Cargo.lock.

    emilio committed Dec 16, 2019
  9. Servo build fixes.

    emilio committed Dec 16, 2019
  10. layout-2020: build fixes.

    emilio committed Dec 16, 2019
  11. Rustfmt recent changes.

    emilio committed Dec 16, 2019
  12. Appease tidy.

    emilio committed Dec 16, 2019
  13. Update WPT expectations.

    emilio committed Dec 16, 2019
  14. Cherry-pick some parts of the cssparser update.

    emilio committed Dec 16, 2019
You can’t perform that action at this time.